-
Notifications
You must be signed in to change notification settings - Fork 715
WiFi connection state drops when WiFi and BLE used together #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From: @chegewara First of all, ble and wifi works togheter very well, just require some effort to setup settings good enough to avoid heap related isues etc. Its been proved with ESP32Explorer. My advise is to start with those settings:
Then you can see how app will work and you can back |
From: @Cypher87 I'm using the Arduino BLE package, with latest IDF. Not sure where to use menuconfig? Anyway, I've added My code: https://pastebin.com/zsfBBrde My output:
Where it's first connecting to my WiFi network. Then starts a scan and sends it using udp. "5" is the WiFi state, which is WL_CONNECTION_LOST. |
From: @chegewara @Cypher87 I will try to help you somehow, just i hope its nothing very important because i didnt sleep today and my brain isnt working too good. This is my output from your code(code works great):
I dont know what wifi state is descibed by code "3", but as you can see there is message about sending data and about sending done. Is it output you are expecting? |
From: @chegewara To have clear situation would be better to start new issue |
Moved to #169 |
Note: This thread was originally created as part of a different thread and is being moved.
From: @Cypher87
I'm not sure if I should create a new issue, or add to this one. Anywho;
I can connect to my WiFi network, and send data. Then I scan for BLE devices and open a UDP connection to send information about the found BLE devices to my server. This works maybe the first 2 times, after that the WiFi connection state goes to WL_CONNECTION_LOST and I'm unable to connect to the WiFi network after that. Seems that BLE and WiFi does not work well together. Can we disable BT after the BLE scan is completed?
The text was updated successfully, but these errors were encountered: