mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
Add ADV_TYPE_SENSOR to Advert class
This commit is contained in:
parent
08736a623f
commit
6a23198ae3
1 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ class Advert {
|
|||
static ADV_TYPE_CHAT = 1;
|
||||
static ADV_TYPE_REPEATER = 2;
|
||||
static ADV_TYPE_ROOM = 3;
|
||||
static ADV_TYPE_SENSOR = 4;
|
||||
|
||||
static ADV_LATLON_MASK = 0x10;
|
||||
static ADV_FEAT1_MASK = 0x20;
|
||||
|
|
@ -49,6 +50,8 @@ class Advert {
|
|||
if(type === Advert.ADV_TYPE_CHAT) return "CHAT";
|
||||
if(type === Advert.ADV_TYPE_REPEATER) return "REPEATER";
|
||||
if(type === Advert.ADV_TYPE_ROOM) return "ROOM";
|
||||
if(type === Advert.ADV_TYPE_SENSOR) return "SENSOR";
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue