meshcore.js
ReferenceVariables

CommandCode

const CommandCode: object;

Defined in: packages/protocol/src/constants.ts:2

First byte of every app → radio command.

Type Declaration

AddUpdateContact

readonly AddUpdateContact: 9 = 9;

AppStart

readonly AppStart: 1 = 1;

DeviceQuery

readonly DeviceQuery: 22 = 22;

ExportContact

readonly ExportContact: 17 = 17;

GetBattAndStorage

readonly GetBattAndStorage: 20 = 20;

GetChannel

readonly GetChannel: 31 = 31;

GetContactByKey

readonly GetContactByKey: 30 = 30;

GetContacts

readonly GetContacts: 4 = 4;

GetDeviceTime

readonly GetDeviceTime: 5 = 5;

RemoveContact

readonly RemoveContact: 15 = 15;

ResetPath

readonly ResetPath: 13 = 13;

SendChannelTxtMsg

readonly SendChannelTxtMsg: 3 = 3;

SendSelfAdvert

readonly SendSelfAdvert: 7 = 7;

SendTxtMsg

readonly SendTxtMsg: 2 = 2;

SetAdvertLatLon

readonly SetAdvertLatLon: 14 = 14;

SetAdvertName

readonly SetAdvertName: 8 = 8;

SetChannel

readonly SetChannel: 32 = 32;

SetDeviceTime

readonly SetDeviceTime: 6 = 6;

SetRadioParams

readonly SetRadioParams: 11 = 11;

SetRadioTxPower

readonly SetRadioTxPower: 12 = 12;

SyncNextMessage

readonly SyncNextMessage: 10 = 10;

On this page