I AM trying, but find it frustrating when I search and get a "File not found" when I click on a link;
I am really not getting how things are explained in this case and many others.
Seems any errors I enter into google and follow links, all the results/explanations are for people who ALREADY know the answer.
Not really helpful.
This is a small part of my code:
lastMsg = now; ++value; snprintf (msg, 75, "hello world #%ld", value); Serial.print("Publish message: "); Serial.println(msg); client.publish("outTopic", msg);
This is the part I need to get working:
message = String(dat) + '.' + String(dat) + " " + String(dat) + '.' + String(dat); // These next TWO lines are not really needed. Serial.println("========"); Serial.println(message); client.publish("outTopic", message);
But I can't wrap my head around what the snprintf( ) command is/does.
I have a C++ book and there is no such animal.
Searching on google (see top) it fails.
Following other links, it is written in a language for someone who already knows the answer.
Could someone please help me understand what I need to do to get this "conflict" resolved.