B4R Question Error when using rESP32Bluetooth and rESP8266Wifi at the same time

sasetcolombia

Member
Licensed User
Longtime User
The Bluetooth and Wi-Fi connection works correctly when used independently, but trying to use both connections in the same project generates the error that is attached in the text file.
What is the solution?
 

Attachments

  • reSP32Bluetooth-rESP8266Wifi.jpg
    reSP32Bluetooth-rESP8266Wifi.jpg
    86.5 KB · Views: 312
  • LogBluetoothWifieSP32.txt
    52.1 KB · Views: 309
  • error.jpg
    error.jpg
    123.6 KB · Views: 295

viriato

Member
Licensed User
Longtime User
Don't think you can as both share same transmitters in the ESP32
[/QUOTE

Hello
I had the same problem and changed the PartitionScheme to huge_app in board selector
May be you need to change also Board type ,some boards do not give acces to this option

1601883986764.png
 
Upvote 0

rodmcm

Active Member
Licensed User
Yes, I agree that this assists with getting both programs into the esp32, but have u run BT and WIFI at the same time using this
 
Upvote 0

viriato

Member
Licensed User
Longtime User
Yes, I have both working at the same time.
I can receive from BT and send to Wifi and reverse
 
Upvote 0

viriato

Member
Licensed User
Longtime User
I keep both connection active all the time and they are completely independent.
If needed i can extract part of the code and post an example.
 
Upvote 0

viriato

Member
Licensed User
Longtime User
Hi,
This example show the communication between ESP-32 using Bluetooth and Wi-Fi connection (on MQTT) at the same time
The command received from Bluetooth is executed EX: ("ADC" read analog input A0) and ("S13" , "R13" set and reset GPIO13)
The result of ADC measurement is sent to Bluetooth and Wi-Fi at the same time if available
This is extracted from a full application managing garage door , driving motor Close/Open, partial Open , detect if door is open/close
Read garage temperature and humidity ,detect if car is on garage spot.

ESP32BT.jpg
 

Attachments

  • ESP32-BT - Wifi.zip
    2.5 KB · Views: 324
Upvote 0
Top