Skip to content

Overview

Expert Topic for experienced builders.

The Bottango Network Driver is an advanced tool for users comfortable writing their own code, and looking to expand the result of animating beyond out-of-the-box supported functionality, by creating a local client process you can edit and shape yourself.

Some example use cases where a network communication hardware driver makes sense:

  • I want to communicate from the Bottango app to my own code running on the same computer.
  • I want to control a motor that requires a connection to a laptop/desktop computer instead of a microcontroller.

An example of when you would likely NOT want to use a network communication hardware driver:

  • I want to control a robot with Bottango wirelessly.

The principal use case for network socket communication is to use it as a pipe for IPC (“inter-process communication”), allowing Bottango to communicate with your own code through a socket connection.

When you enable a network driver, you create a sockets based server on your network, at the port you indicated. That server will listen for incoming connections, and stream commands to the connected clients for you.

That server is located at the IP address (or localhost) of the computer running the Bottango application on your local network.

There is a fully functioning example client, written in Python, that can connect to the server and respond to commands from Bottango. You are not limited to using Python; that is just the example given and maintained.

However, though the example client can process and respond to all commands, it doesn’t actually take any actions based on the command. In order to make it more than a simple command responder, you will need to expand it to take your desired custom actions.