I am trying to program a device that will be both a standard BLE client (scan devices, connect to them, read/write GATT attributes, disconnect) as well as a BLE Mesh node/relay that can control other devices in the network. I'm still studying the BLE Mesh architecture, it's a pretty steep learning curve and confusing, but as far as I understand so far that would require the device to be a relay + node + proxy.
My question is: Can the ESP32 BLE operate in both of these modes at the same time?
If so, are there any examples for this sort of device?
I already have the simple BLE working (thanks for the great examples espressif team!), can connect to BLE devices as needed. So far I just tried adding bits of the onoff_client example code, called the init after initing normal BLE, which kind of killed the scanning functionality:
Code: Select all
E (287166) BT_BTM: BTM_BleScan scan already active
W (287167) BT_APPL: bta_dm_ble_scan start scan failed. status=0x6
Thanks,
bluefan