...
ManufacturerData | company identifier | 4 octets (15FF4F09 ) |
Version | the version of this advertisement structure | 1 octet (uint) |
UserData | user-configured part of the payload | 1 octet (uint) |
Secret | optionally encrypted (AES-ECB) part of the payload |
|
Info |
---|
Please note that all multi-byte values are in little-endian. Meaning, if, for example, you want to get the temperature value and #14 and #15 octets indicate the temperature as "a1 19" → the real temperature value is going to be (0x19a1)/256 = 25.6 C. |
UserData and Secret fields are configured with the help of flags
. In the "UserData" section, the parameter that controls whether the "Secret" is encrypted or not is called FLAG_ENCRYPTED
. When FLAG_ENCRYPTED=0
, it means the secret is not encrypted (1st bit in 6th octet would be set to 0), and when FLAG_ENCRYPTED=1
, it means the secret is encrypted (1st bit in 6th octet would be set to 1).
...