Skip to content

14: Config โ€‹

๐Ÿงช Alpha

Config interactions are currently in an experimental phase, and the API may change in future, and documentation may be incomplete.

Payload โ€‹

FieldNameDescriptionTypeUnit
3CommandPossible values:
  • 1: Partial Wipeโ€” Wipe some config values, such as WiFi credentials, but not all config Same as reset=1 in old lightbug device config.
  • 2: Full Wipeโ€” Wipe all config values, returning the device to a factory new state. Same as reset=2 in old lightbug device config.
uint
4Summary of uint8 keysA table of uint8 keys known, with the crc8 of the value.
eg: 123, 45, 124, 67 means key 123 has a value with crc8 of 45, and key 124 has a value with crc8 of 67.
May be sent, with the expectation of receiving config messages with the listed keys and values that need changing
uint8[]
5Summary of uint16 keysA table of uint16 keys known, with the crc8 of the value.
eg: 123, 0, 45, means key 123 has a value with crc8 of 45.
May be sent, with the expectation of receiving config messages with the listed keys and values that need changing
bytes
7KeyPossible values:
  • 1: BaseSettingsโ€” 24 bytes of basic device settings (intervals, modes, etc.)
  • 2: HomeWifi
  • 5: TimedSettings
  • 6: UnixAlarms
  • 19: RtkMinUsableSatDbโ€” Minimum usable satellite db
  • 20: RtkMinElevationโ€” RtkMinElevation
  • 27: Secondary Serverโ€” A FQDN or IP of a secondary server for the second link.
uint16
9PayloadPayload for the config.
Setting a key to a 0 length value may be used to clear the config value for that key.
bytes

Code โ€‹

For convenience, the following constants can be used to reference this message type.