Change Baudrate on the fly
Posted: Sun Jun 18, 2017 9:25 am
Hello,
I like to change baudrate for an ESP32 on the fly to communicate with a VC0706.
I used Arduino:
1. HardwareSerial Serial2(2);
2. Serial2.begin(38400);
3. ...do something with VC0706 -> This worked
4. Serial2.end(); -> Here stopped the program!
5. delay(1000);
6. Serial2.begin(115400);
7. delay(1000);
8. ..do something with VC0706
-> It didn't not work. The ESP32 stopped at line 4.)
Also a software-reset didn't help. Is it possible to change baudrate of an esp32 on the fly?
I like to change baudrate for an ESP32 on the fly to communicate with a VC0706.
I used Arduino:
1. HardwareSerial Serial2(2);
2. Serial2.begin(38400);
3. ...do something with VC0706 -> This worked
4. Serial2.end(); -> Here stopped the program!
5. delay(1000);
6. Serial2.begin(115400);
7. delay(1000);
8. ..do something with VC0706
-> It didn't not work. The ESP32 stopped at line 4.)
Also a software-reset didn't help. Is it possible to change baudrate of an esp32 on the fly?