Bluetooth BLE C/C++ development
Posted: Wed Apr 25, 2018 4:46 pm
Hi All,
I'm currently working on a IoT project involving ESP32 modules and an RPi linux device. The ESP32 devices communicate to/from the RPi using MQTT (Mosquitto on the RPi, Paho on the ESP32). However, before this communication can start, the ESP's need to know the wifi SSID and password, the ip-address of the broker (aka RPi) and some device-specific settings. ATM this data is hard-coded into the ESP firmware. This is not the best way. A solution would be to use the ESP-IDF console component, but this requires some sort of wired connection. That's also not ideal for my situation... The best solution I can come up with is using bluetooth communication to set the ESP's parameters before participating in the MQTT system. I found documentation for the ESP side to solve this, but no info re the linux side.
So my simple question is where I can find info/tutorials/examples on how to implement BLE functionality in C/C++ on linux (Debian) ? I was googling the whole day to no avail (However, I found a lot of info about BLE in general, so no time is wasted .
Thanks for your input.
Paul
I'm currently working on a IoT project involving ESP32 modules and an RPi linux device. The ESP32 devices communicate to/from the RPi using MQTT (Mosquitto on the RPi, Paho on the ESP32). However, before this communication can start, the ESP's need to know the wifi SSID and password, the ip-address of the broker (aka RPi) and some device-specific settings. ATM this data is hard-coded into the ESP firmware. This is not the best way. A solution would be to use the ESP-IDF console component, but this requires some sort of wired connection. That's also not ideal for my situation... The best solution I can come up with is using bluetooth communication to set the ESP's parameters before participating in the MQTT system. I found documentation for the ESP side to solve this, but no info re the linux side.
So my simple question is where I can find info/tutorials/examples on how to implement BLE functionality in C/C++ on linux (Debian) ? I was googling the whole day to no avail (However, I found a lot of info about BLE in general, so no time is wasted .
Thanks for your input.
Paul