Skip to content

Instantly share code, notes, and snippets.

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment