Hi,
I am trying to find a way to create an Arduino code to read incomming message from a subscribed topic.
The message us not just one character but a string with different settings which are stpred in RTCmemory (ESP 8266) for later use.
I’ve seen Ravi’s code in his Youtube episode about reading ONE chatacter from incomming MQTT message.
I tried several codes, like: Message = Serial.readString();
The string Message does contain the send message but starts with crap (some binairy I think) I can’t get rid of this firsty part. I tried trim, remove, etc
I also tried reading the Serial buffer character by character with Serial.read(); Also no luck.
Any example code would be nice.
Kind regards, Robert