Handler

class ardurpc.handler.Handler(serial=None, handler_id=None, name=None)[source]

Handler base class.

__weakref__

list of weak references to the object (if defined)

_exec(command_id, fmt=None, *data)[source]

Execute a command on the microcontroller.

Parameters:
  • command_id (Integer) – The ID of the command
  • fmt (String) – The format of the data
  • *data

    Parameters for the command

Returns:

Returns the result

_get_result()[source]

Reade data from serial port and wait for the result.

Returns:Parsed result
_parse_result(data)[source]

Parse the result data.

Parameters:data (String) – Data to parse.
Returns:Mixed-Type

Previous topic

ArduRPC

Next topic

Matrix

This Page