WiFi and BLE, but at different times.

AndreiC
Posts: 4
Joined: Fri May 11, 2018 6:39 pm

WiFi and BLE, but at different times.

Postby AndreiC » Fri May 11, 2018 6:45 pm

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.

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: WiFi and BLE, but at different times.

Postby fly135 » Sun May 13, 2018 10:58 pm

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

Who is online

Users browsing this forum: Bing [Bot] and 155 guests