This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:sidebar:remoteapi:apiref:format:messages [29/11/2019 07:17] chdi [Message with data] |
en:sidebar:remoteapi:apiref:format:messages [14/10/2022 17:25] mani |
||
---|---|---|---|
Line 13: | Line 13: | ||
| [[#Command|0x0200]] | 512 | command | | | [[#Command|0x0200]] | 512 | command | | ||
| [[#Event|0x0600]] | 1536 | event | | | [[#Event|0x0600]] | 1536 | event | | ||
+ | | [[#Video usage|0x2000]] | 8192 | video usage | | ||
| **Resource messages** ||| | | **Resource messages** ||| | ||
| [[#Notification|0x0300]] | 768 | notification | | | [[#Notification|0x0300]] | 768 | notification | | ||
Line 52: | Line 53: | ||
<text>:<double>, | <text>:<double>, | ||
... | ... | ||
- | } | + | }, |
+ | "lc":<int>, /* lbs message checksum */ | ||
+ | "rt":<uint> /* message registration time (UTC) */ | ||
} | } | ||
</code> | </code> | ||
Line 127: | Line 130: | ||
| 0x10 | 16 | is set in addition to flag 0x2: maintenance is registered | | | 0x10 | 16 | is set in addition to flag 0x2: maintenance is registered | | ||
| 0x20 | 32 | is set in addition to flag 0x2: registered filling | | | 0x20 | 32 | is set in addition to flag 0x2: registered filling | | ||
+ | |||
+ | ===== Video usage ===== | ||
+ | |||
+ | Флаг - 0<nowiki>x</nowiki>2000(8192) | ||
+ | |||
+ | <code javascript> | ||
+ | { | ||
+ | "t":<uint>, /* message time (UTC) */ | ||
+ | "f":<uint>, /* flags */ | ||
+ | "tp":"xx", /* message type */ | ||
+ | "p":{ /* parameters */ | ||
+ | "cha_n":<uint>, | ||
+ | "bytes_in":<long>, | ||
+ | "action":<uint>, | ||
+ | "conn_id":<uint>, | ||
+ | "hw_id":<long> | ||
+ | } | ||
+ | } | ||
+ | </code> | ||
===== Notification ===== | ===== Notification ===== |
|