FirmwareManager class
A service to manage all the connected firmware.
Firmware means any device using the Firmware-Utilities library. In our case, all such devices are Teensy boards running on the Arduino platform, connected via USB (serial).
This service relies on the BurtFirmwareSerial
class defined in package:burt_network
. That
class takes care of connecting to, identifying, and streaming from a firmware device. This
service is responsible for routing incoming UDP messages to the correct firmware device
(_sendToSerial
), and forwarding serial messages to the Dashboard (RoverSocket.sendWrapper
).
- Inheritance
-
- Object
- Service
- FirmwareManager
Constructors
Properties
Methods
-
dispose(
) → Future< void> -
Closes the connection to the device.
override
-
init(
) → Future< bool> -
Initializes the connection to the device.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDisconnect(
) → Future< void> -
A callback to run when the program has disconnected from the Dashboard.
inherited
-
sendMessage(
Message message) → void -
Sends a
Message
to the appropriate firmware device. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited