LED Control Application
The backchannel application for LED control
APP ID is 1024 for LED Control Application
The protocol is described in detail on this page.
The application can send the following message to the server.
message | length | value |
---|---|---|
LED state | dynamic, based on value | see table bellow |
too long time | 1B | 0xFD |
unknown request | 1B | 0xFE |
corrupted data | 1B | 0xFF |
LED state | LED state code | time (2B) | period (2B) | PW (1B) |
---|---|---|---|---|
OFF | 0x00 | N/A | N/A | N/A |
ON | 0x01 | remaining time [10ms] | N/A | N/A |
blinking | 0x02 | remaining time [10ms] | blink period [10ms] | pulse width |
The resulting form of the APP response can have the following form:
LED OFF
APP ID | length | state |
---|---|---|
0004 | 01 | 00 |
LED ON - remaining time is 5000ms
APP ID | length | state | time |
---|---|---|---|
0004 | 03 | 01 | F401 |
LED blinking - remaining time is 5000ms, period = 500ms, pw = 50%
APP ID | length | state | time | period | pw |
---|---|---|---|---|---|
0004 | 06 | 02 | F401 | 3200 | 80 |