Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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