add ability to send and receive channel messages

This commit is contained in:
liamcottle 2025-02-13 22:54:18 +13:00
parent 183bd812fa
commit 37b13d4193
3 changed files with 89 additions and 6 deletions

View file

@ -14,7 +14,7 @@ class Constants {
static CommandCodes = {
AppStart: 1,
SendTxtMsg: 2,
SendChannelTxtMsg: 3, // todo
SendChannelTxtMsg: 3,
GetContacts: 4,
GetDeviceTime: 5,
SetDeviceTime: 6,
@ -38,14 +38,14 @@ class Constants {
SelfInfo: 5,
Sent: 6,
ContactMsgRecv: 7,
ChannelMsgRecv: 8, // todo
ChannelMsgRecv: 8,
CurrTime: 9,
NoMoreMessages: 10,
}
static PushCodes = {
Advert: 0x80,
PathUpdated: 0x81, // todo
PathUpdated: 0x81,
SendConfirmed: 0x82,
MsgWaiting: 0x83,
}