dotbot.rest module#

Module containing client code to interact with the controller REST API.

class dotbot.rest.RestClient(hostname, port, https)[source]#

Bases: object

Client to interact with the controller REST API.

async close()[source]#
async fetch_active_dotbots()[source]#

Fetch active DotBots.

Return type:

List[DotBotModel]

async send_move_raw_command(address, application, command)[source]#

Send a move raw command to a DotBot.

async send_rgb_led_command(address, command)[source]#

Send an RGB LED command to a DotBot.

async send_waypoint_command(address, application, command)[source]#

Send an waypoint command to a DotBot.

property base_url#

Returns the base URL of the controller REST API.

dotbot.rest.rest_client(host, port, https)[source]#