Interested to get some advice on the following please.
Working on a project for some time now and had this issue with a serial console showing weird characters when sending MQTT commands as below.
Device is a LILYGO® TTGO T-SIM7600 ESP32 (ESP32-WROVER and SIM7600).
Everything is the code works but have some minor issues that I need to resolve.
I have read about baud rates and slowing the code down to communicate to the SIM modem. Baud rate is 115200 played baud rates to 9600 - 115200. 115200 seems stable and is the example speed in the Tiny_GSM library examples.
Q. Where do these extra characters come from when sending local to a cloud MQTT then to the device? (using Node Red flow to pub/sub)
Q. How do I debug them?
Q. Both MQTT and modem AT commands seem to generate them?
Q. MQTT pub topics seem to have more
Q. MQTT sub topics are ok
Using MQTT explorer to the cloud MQTT broker and pub/sub messages are as expected.
In serial console added to the code looking for blanks etc…
Serial.print("<");
SerialMon.print((char*)payload);
Serial.println(">");
and connecting to a cloud MQTT broker
and sending MQTT commands I see in the serial console extra characters