arduino-esp32/libraries/BLE/examples
Tomáš Pilný b8ea455f45
Fix for negative temp in Eddystone TLM; solving #7618 (#7791)
* Changed data type of temperature

* Changed data type in EddystoneTLM class and example

* Revert "Changed data type in EddystoneTLM class and example"

This reverts commit 1f3a9414ee13341f80bd6d51cdbd57254aadfe97.

* Draft of Eddystone TLM example

* Adds MACROs to convert beacon temperature 

2 Macros
EDDYSTONE_TEMP_U16_TO_FLOAT(tempU16)  - takes the TLM BigEndian 8.8 fixed point representation and returns its float value 
EDDYSTONE_TEMP_FLOAT_TO_U16(tempFloat)  - takes a float (temperature) and returns its BigEndian 8.8 fixed point representation

* Fixed temp

* Changed to conform with PR comments

* Fixed comment on closing bracket

* Prints negative TEMP big endian as just 2 bytes

* Extacts correct Eddyston Service Data

* Fixes BLEEddystoneTLM::toString() negative temp

* Fixes URL field length

* Fixes Eddystone URL decoding

* Fixes MSB for iBeacon UUID

iBeacons use big endian BLE fields.

* Fix to detect iBeacon that also has Service UUID

This fix makes the BLE_iBeacon.ino to work correctly with the BLE_Beacon_Scanner.ino example

---------

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2023-02-20 13:30:04 +02:00
..
BLE5_extended_scan General examples updates (#7727) 2023-02-15 15:54:25 +02:00
BLE5_multi_advertising BLE5 features to use with C3/S3 (#5085) 2021-04-22 13:01:20 +03:00
BLE5_periodic_advertising BLE5 features to use with C3/S3 (#5085) 2021-04-22 13:01:20 +03:00
BLE5_periodic_sync General examples updates (#7727) 2023-02-15 15:54:25 +02:00
BLE_Beacon_Scanner Fix for negative temp in Eddystone TLM; solving #7618 (#7791) 2023-02-20 13:30:04 +02:00
BLE_client Fixes BLE data printing (#7699) 2023-02-06 14:55:41 +02:00
BLE_EddystoneTLM_Beacon Fix for negative temp in Eddystone TLM; solving #7618 (#7791) 2023-02-20 13:30:04 +02:00
BLE_EddystoneURL_Beacon Adds BLE examples to ESP32-C3 CI cycle (#6285) 2022-02-16 14:25:39 +02:00
BLE_iBeacon replaced original BLE_iBeacon.ino example with a known-good one (#7470) 2022-12-21 16:35:56 +01:00
BLE_notify Adds BLE examples to ESP32-C3 CI cycle (#6285) 2022-02-16 14:25:39 +02:00
BLE_scan Adds BLE examples to ESP32-C3 CI cycle (#6285) 2022-02-16 14:25:39 +02:00
BLE_server Adds BLE examples to ESP32-C3 CI cycle (#6285) 2022-02-16 14:25:39 +02:00
BLE_server_multiconnect Adds BLE examples to ESP32-C3 CI cycle (#6285) 2022-02-16 14:25:39 +02:00
BLE_uart Adds BLE examples to ESP32-C3 CI cycle (#6285) 2022-02-16 14:25:39 +02:00
BLE_write Adds BLE examples to ESP32-C3 CI cycle (#6285) 2022-02-16 14:25:39 +02:00