add sleepcycle to config query result
This commit is contained in:
parent
2541aebc85
commit
652e875b91
@ -59,8 +59,7 @@ Hereafter described is the default *plain* format, which uses MSB bit numbering.
|
|||||||
byte 11: Bluetooth channel switch interval in seconds/100 (0..255) [default 10]
|
byte 11: Bluetooth channel switch interval in seconds/100 (0..255) [default 10]
|
||||||
byte 12: Bluetooth scanner status (1=on, 0=0ff) [default 1]
|
byte 12: Bluetooth scanner status (1=on, 0=0ff) [default 1]
|
||||||
byte 13: Wifi antenna switch (0=internal, 1=external) [default 0]
|
byte 13: Wifi antenna switch (0=internal, 1=external) [default 0]
|
||||||
byte 14: 0 (reserved)
|
bytes 14-15: Sleep cycle in seconds/10 (MSB) [default 0]
|
||||||
byte 15: RGB LED luminosity (0..100 %) [default 30]
|
|
||||||
byte 16: Payloadmask (Bitmask, 0..255, see rcommand 0x14)
|
byte 16: Payloadmask (Bitmask, 0..255, see rcommand 0x14)
|
||||||
byte 17: 0 (reserved)
|
byte 17: 0 (reserved)
|
||||||
bytes 18-28: Software version (ASCII format, terminating with zero)
|
bytes 18-28: Software version (ASCII format, terminating with zero)
|
||||||
|
@ -145,7 +145,7 @@ Send for example `83` `86` as Downlink on Port 2 to get battery status and time/
|
|||||||
|
|
||||||
#### 0x19 set sleep cycle
|
#### 0x19 set sleep cycle
|
||||||
|
|
||||||
bytes 1..2 = device sleep cycle in seconds/10 (MSB), 1 ... 255
|
bytes 1..2 = device sleep cycle in seconds/10 (MSB), 0..65535 (0 = no sleep)
|
||||||
e.g. {0x04, 0xB0} -> device sleeps 200 minutes after each send cycle [default = 0]
|
e.g. {0x04, 0xB0} -> device sleeps 200 minutes after each send cycle [default = 0]
|
||||||
|
|
||||||
#### 0x20 load device configuration
|
#### 0x20 load device configuration
|
||||||
|
@ -47,8 +47,8 @@ void PayloadConvert::addConfig(configData_t value) {
|
|||||||
buffer[cursor++] = value.blescantime;
|
buffer[cursor++] = value.blescantime;
|
||||||
buffer[cursor++] = value.blescan;
|
buffer[cursor++] = value.blescan;
|
||||||
buffer[cursor++] = value.wifiant;
|
buffer[cursor++] = value.wifiant;
|
||||||
buffer[cursor++] = 0; // reserved
|
buffer[cursor++] = highByte(value.sleepcycle);
|
||||||
buffer[cursor++] = value.rgblum;
|
buffer[cursor++] = lowByte(value.sleepcycle);
|
||||||
buffer[cursor++] = value.payloadmask;
|
buffer[cursor++] = value.payloadmask;
|
||||||
buffer[cursor++] = 0; // reserved
|
buffer[cursor++] = 0; // reserved
|
||||||
memcpy(buffer + cursor, value.version, 10);
|
memcpy(buffer + cursor, value.version, 10);
|
||||||
@ -171,7 +171,7 @@ void PayloadConvert::addConfig(configData_t value) {
|
|||||||
writeUint8(value.sendcycle);
|
writeUint8(value.sendcycle);
|
||||||
writeUint8(value.wifichancycle);
|
writeUint8(value.wifichancycle);
|
||||||
writeUint8(value.blescantime);
|
writeUint8(value.blescantime);
|
||||||
writeUint8(value.rgblum);
|
writeUint16(value.sleepcycle);
|
||||||
writeBitmap(value.adrmode ? true : false, value.screensaver ? true : false,
|
writeBitmap(value.adrmode ? true : false, value.screensaver ? true : false,
|
||||||
value.screenon ? true : false, value.countermode ? true : false,
|
value.screenon ? true : false, value.countermode ? true : false,
|
||||||
value.blescan ? true : false, value.wifiant ? true : false, 0, 0);
|
value.blescan ? true : false, value.wifiant ? true : false, 0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user