Skip to content

Glossary

TermDescription
ToitA programming language designed for IoT devices, which we provide a high level SDK for.
[Toit official website]
ESP32A popular low-cost microcontroller with built-in WiFi and Bluetooth, used in some Lightbug devices.
[ESP32 on Wikipedia]
MessageA packet of communication sent between clients, using the Lightbug protocol.
PrefixOptional bytes before a message to make it easier to see in a byte stream.
0x4c, 0x42 which is LB in ascii.
HeaderThe first part of the message that contains metadata about a message.
Length, type, method, and other generic metadata or instruction.
PayloadThe primary data that is being sent in a message.
Header field typeA field type uint8 that is used within header data.
These are generally reused across all message types.
Payload field typeA field type uint8 that is used within payload data.
These are generally specific to a message type.
See messages.
bBytesA byte array that represents a length and that amount of data in bytes.
The length prefix is a uint8 (1 byte) for data type IDs 0–127, or a little-endian uint16 (2 bytes) for data type IDs 128–255.
A bByte entry for a sub-128 field might be 3 9 9 9, where 3 is the length, and 9 9 9 is the data.
A bByte entry for a greater than 128 field might be 3 0 9 9 9, where 3 is the length, and 9 9 9 is the data.
See structure.