...
The simplest method of getting occupancy status from 1 and 2 is shown in the following Java Script code example:
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
The first example is for cases when the payload type is string (Nwave HTTP Calls for example):
The second example is for cases when the payload type is array of integers (TTN, TTI for example):
|
Info |
---|
You can also refer to our Java Script payload decoder shared on the Github. Examples of decoded messages are available on the TTN device page. |
Please refer to the sections below for detailed information on message payload structure.
...
The parking status message uses port 1 and is confirmed by default. It may be configured as unconfirmed with or without repetitions (see downlink messages).
Byte | Bits | Name |
---|---|---|
0 | 0 | Parking status 0: Free parking space 1: Occupied parking space |
7..1 | Compressed duration of the previous status |
...