mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
add ability to send and receive channel messages
This commit is contained in:
parent
183bd812fa
commit
37b13d4193
3 changed files with 89 additions and 6 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue