2

I would like to use a BLE temperature sensor (such as the Inkbird IBS-TH1 Mini BLE Sensor), however, I want to be able to display the temperature measurements in my own website. To do this I am planning to have an ESP32, which would intercept the temperatures sensor's BLE messages (and then send them to Firebase Realtime Database via WiFi). I know how to use the ESP32 to find advertising devices, however, I am not sure how to receive the measurements the sensor is transmitting. I have seen libraries such as the ESPHome or ESP32-mqtt-room, but I was wondering whether there is a way to bypass them? Is it neccesary to use mqtt or mosquito? Or is it possible to achieve this using solely the Arduino BLE library?

Any help would be appreciated!

Nina
  • 499
  • 6
  • 16
  • 1
    If the BLE sensor lets you connect and read the data this is possible. But it is hard to tell without knowing the sensor. You could use a BLE scanner app such as [nRF Connect](https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-mobile) to see if you can find and connect to the sensor. Just take a look at the provided services and characteristics to see if you can work with it. Sometimes devices use standardized services, sometimes they define their own – Michael Kotzjan Jun 30 '21 at 08:30
  • @M.Kotzjan Thank your answer! Do you know if the sensor would hypotheticaly let me connect and read the data, how could I enable the ESP32 to read the data as the nRF Connect does it? Do you maybe know any good resources I could look at? – Nina Jun 30 '21 at 08:46
  • 1
    The BLE library for the ESP32 is now included in the arduino libraries: https://github.com/arduino-libraries/ArduinoBLE. One simple example reading data would be https://github.com/arduino-libraries/ArduinoBLE/blob/master/examples/Central/SensorTagButton/SensorTagButton.ino – Michael Kotzjan Jun 30 '21 at 09:05
  • 1
    @M.Kotzjan Thanks again! – Nina Jun 30 '21 at 09:36

0 Answers0