dotbot.adapter module#
Module containing classes for interfacing with the DotBot gateway.
- class dotbot.adapter.DotBotSimulatorAdapter(simulator_init_state='simulator_init_state.toml')[source]#
Bases:
SimulatorAdapterBaseClass used to interface with the dotbot simulator.
- Parameters:
simulator_init_state (str)
- class dotbot.adapter.GatewayAdapterBase[source]#
Bases:
ABCBase class for interface adapters.
- class dotbot.adapter.MarilibCloudAdapter(host, port, use_tls, network_id, username=None, password=None)[source]#
Bases:
GatewayAdapterBaseClass used to interface with Marilib.
- Parameters:
host (str)
port (int)
use_tls (bool)
network_id (int)
username (str | None)
password (str | None)
- class dotbot.adapter.MarilibEdgeAdapter(port, baudrate, verbose=False)[source]#
Bases:
GatewayAdapterBaseClass used to interface with Marilib.
- Parameters:
port (str)
baudrate (int)
verbose (bool)
- class dotbot.adapter.SailBotSimulatorAdapter[source]#
Bases:
SimulatorAdapterBaseClass used to interface with the sailbot simulator.
- class dotbot.adapter.SerialAdapter(port, baudrate)[source]#
Bases:
GatewayAdapterBaseRaw (non-Mari) serial gateway interface.
Deprecated: the –conn CLI no longer selects this — a device-path connection maps to the Mari edge adapter, since bare DotBot apps now emit Mari-shaped frames and the gateway speaks Mari-shaped UART packets (so the edge adapter handles both sandbox and bare). Kept for now as no CLI path constructs it; likely removed in a future cleanup.
- Parameters:
port (str)
baudrate (int)
- class dotbot.adapter.SimulatorAdapterBase[source]#
Bases:
GatewayAdapterBaseBase class used to interface with the simulator.
- abstract create_simulator(_byte_received)[source]#
Create the simulator instance.
- Parameters:
_byte_received (callable)
- send_payload(destination, payload)[source]#
Send payload to the interface.
- Parameters:
destination (int)
payload (Payload)
- async start(on_frame_received)[source]#
Initialize the interface.
- Parameters:
on_frame_received (callable)
- simulator = None#