Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
uint8 id = 1 // Use 1 here as the datagram ID to avoid conflicts 
uint8 ids_addressed = 0 // The special value 0 means every controller board is addressed
uint16 data_size // Size of the protobuf (in n bytes)
uint8[n] data // The protobuf (located in the protos folder in the bootloader project: querying_bootloader.proto)

The response datagram will have the following format:

Code Block
uint8 id = 2 // Use 2 here as the datagram ID to avoid conflicts 
uint16 data_size // Size of the protobuf (in n bytes)
uint8[n] data // The protobuf (located in the protos folder in the bootloader project: querying_response_bootloader.proto)

Ping

The ping function sends out a list of node IDs or none to ping all boards. Each board will send back a message with its ID if it is in the bootloader and ready to receive commands.

...