Page 1 of 1

WiFi and BLE, but at different times.

Posted: Fri May 11, 2018 6:45 pm
by AndreiC
I'm just getting started with the ESP32 and I have a question:

Is it possible to have both the WiFi and BLE stacks available to the PRO_CPU, so that one could start the system with BLE active and if no connection is established in a few minutes, the stack is torn down and WiFi is brought up instead?

Is there any rules, like the PRO_CPU code has to be loaded at X location, that would keep this from happening?

Thanks,
Andrei from The Great White North.

Re: WiFi and BLE, but at different times.

Posted: Sun May 13, 2018 10:58 pm
by fly135
AndreiC wrote:I'm just getting started with the ESP32 and I have a question:

Is it possible to have both the WiFi and BLE stacks available to the PRO_CPU, so that one could start the system with BLE active and if no connection is established in a few minutes, the stack is torn down and WiFi is brought up instead?

Is there any rules, like the PRO_CPU code has to be loaded at X location, that would keep this from happening?

Thanks,
Andrei from The Great White North.
What you describe is easy. Not sure about why you make reference to the PRO_CPU. You can run BLE and Wifi or just one or the other. Write something in NVS to tell you want to do on boot and reboot.

John A