ct-Open-Source / Basecamp

An Arduino library to ease the use of the ESP32 in IoT projects
GNU General Public License v3.0
254 stars 48 forks source link

Serial.begin() called again - system freezes #45

Open mamuesp opened 6 years ago

mamuesp commented 6 years ago

I stumbled across a strange problem. I use Basecamp in my own library, under PlatformIO on the ESP-WROVER-KIT. It happens that when "Serial.begin(115200)" is called again, everything gets stuck. Since I called "Serial.begin(115200)" in my library before calling "iot.begin()", the program flow just gets stuck in the method. When I comment out the "Serial.begin", everything runs wonderfully. The problem occurs both on the ESP-WROVER-KIT and on a generic ESP32 dev board. For now, I'll help myself by commenting out the line, but in the long run a configuration option would be helpful. But I will post the behaviour in the ESP32 forum, let's see what they think about it...