maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
805 stars 233 forks source link

Bluetooth #300

Closed Kristian8606 closed 4 years ago

Kristian8606 commented 4 years ago

Hi maximkulkin is it possible to add an example with bluetooth on esp32 for example, one of these

https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/esp_ble_mesh

maximkulkin commented 4 years ago

esp-homekit does not work over bluetooth

Kristian8606 commented 4 years ago

I had in mind whether it was possible to receive temperature data via bluetooth instead of using the DHT library.

Kristian8606 commented 4 years ago

https://youtu.be/Wef_bWNC2rY

lrusnac commented 4 years ago

@Kristian8606 try searching for a ble library for freeRTOS, but as far as I remember the esp32 had issues in using both the bluetooth and wifi at the same time, they share the same radio, so it's one at a time, this might create some annoyances but should be possible if you use some semaphores and keep it always on wifi mode and once in a while switch to bluetooth to get the temperature and go back to wifi. it might be a bit of work to get it right, so good luck :) but share with us if you manage to do it