Options
All
  • Public
  • Public/Protected
  • All
Menu

This message is never sent over the wire, but it is used for serializing DB state to flash in the device code FIXME, since we write this each time we enter deep sleep (and have infinite flash) it would be better to use some sort of append only data structure for the receive queue and use the preferences store for the other stuff

generated

from protobuf message DeviceState

Hierarchy

  • DeviceState

Index

Properties

didGpsReset

didGpsReset: boolean

Some GPSes seem to have bogus settings from the factory, so we always do one factory reset.

generated

from protobuf field: bool did_gps_reset = 11;

Optional legacyRadio

legacyRadio: LegacyRadioConfig

Moved to its own file, but we keep this here so we can automatically migrate old radio.region settings

generated

from protobuf field: LegacyRadioConfig legacyRadio = 1;

Optional myNode

myNode: MyNodeInfo

Read only settings/info about this node

generated

from protobuf field: MyNodeInfo my_node = 2;

noSave

noSave: boolean

Used only during development. Indicates developer is testing and changes should never be saved to flash.

generated

from protobuf field: bool no_save = 9;

nodeDb

nodeDb: NodeInfo[]
generated

from protobuf field: repeated NodeInfo node_db = 4;

Optional owner

owner: User

My owner info

generated

from protobuf field: User owner = 3;

receiveQueue

receiveQueue: MeshPacket[]

Received packets saved for delivery to the phone

generated

from protobuf field: repeated MeshPacket receive_queue = 5;

Optional rxTextMessage

rxTextMessage: MeshPacket

We keep the last received text message (only) stored in the device flash, so we can show it on the screen. Might be null

generated

from protobuf field: MeshPacket rx_text_message = 7;

version

version: number

A version integer used to invalidate old save files when we make incompatible changes This integer is set at build time and is private to NodeDB.cpp in the device code.

generated

from protobuf field: uint32 version = 8;

Generated using TypeDoc