Created
February 18, 2020 21:31
-
-
Save parzibyte/04b02884f3c66a0d811d5b951c321ee6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Formatear una cadena dentro de mensaje | |
sprintf(mensaje, "Contador: %d", contador); | |
// Y publicar un simple contador | |
Serial.print("Publicando mensaje..."); | |
clienteMqtt.publish("jardin/temperatura", mensaje); | |
Serial.println("OK"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment