To get Espruino(ESP32) compiled with USE_BLUETOOTH=1 changed this
added includes to bluetooth.h
added variables in bluetooth.c, I'm pretty sure there's a better way, but to avoid side conflicts, ...
volatile BLEStatus bleStatus;
volatile uint16_t m_conn_handle;
That sounds right - on nrf5x they're defined in Bluetooth.c as well I believe?
You can add BLUETOOTH to ESP32.py's libraries list I believe, and USE_BLUETOOTH gets automatically added.
I'm surprised about needing to change bluetooth.h though - I managed to get a Linux build with USE_BLUETOOTH just by tweaking the .py file
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem