Replies: 4 comments
-
You can call it anywhere you need. I suspect something is releasing the ble controller memory before init is called. |
Beta Was this translation helpful? Give feedback.
-
Do you know in which kind of direction I should start looking to find out what could release the ble controller memory? |
Beta Was this translation helpful? Give feedback.
-
I would say there is no heap to init bluetooth stack. |
Beta Was this translation helpful? Give feedback.
-
Turns out is has nothing to do with NimBLE. Before calling
I used this code before calling But somehow this function crashes the ESP with the error of my original post. I will do some further testing because I don't understand why this happens at all. Before using NimBLE I used the normal Bluetooth BLEDevice.h and had no problem with calling createName() before calling the Bluetooth init function. |
Beta Was this translation helpful? Give feedback.
-
Hello,
if I call
NimBLEDevice::init()
directly inside thesetup()
function everything works.But if I put
NimBLEDevice::init()
into a function in another file and call that function form mysetup()
I get the following error:Is it not possible to call
NimBLEDevice::init()
outside ofsetup()
?Beta Was this translation helpful? Give feedback.
All reactions