sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
462 stars 179 forks source link

ESP32 support #126

Open vshymanskyy opened 7 years ago

vshymanskyy commented 7 years ago

This is just an idea/question - would it be very hard to support ESP32 BLE? It this BLE stack relevant or it would be almost impossible to implement?

Thanks @sandeepmistry !

vshymanskyy commented 7 years ago

Here is some early stage example for ESP32 BLE advertisement: https://gist.github.com/me-no-dev/00bc1a4765350e46992bfd9d5d6c1473

sandeepmistry commented 7 years ago

Hey @vshymanskyy,

ESP32 should be pretty straightforward to add, the library already has a BLEDevice abstraction layer that separates nRF8001 and nRF51/52 support, so it's just a matter of creating a new lower level for ESP32.

There's some higher level API's in the ESP IDF that can be used instead of the link you provided above: https://github.com/espressif/esp-idf/tree/master/examples/bluetooth

Unfortunately, this is not something I have time to do, however I'd gladly review a pull request for this.

jvkassi commented 5 years ago

@sandeepmistry can you have a look now ?