-
• #2
That sounds right - on nrf5x they're defined in Bluetooth.c as well I believe?
You can add
BLUETOOTH
toESP32.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
To get Espruino(ESP32) compiled with USE_BLUETOOTH=1 changed this
added includes to bluetooth.h
#include "jsutils.h"
#include "jsvar.h"
added variables in bluetooth.c, I'm pretty sure there's a better way, but to avoid side conflicts, ...
volatile BLEStatus bleStatus;
uint16_t bleAdvertisingInterval;
volatile uint16_t m_conn_handle;