Generation

generate functionMon, 10 Apr 2023

funcion de Arduino IDE que manda un mqtt por SIM7080G usando las librerias tinyGSm y PubSubClient requiere el topic y el mensaje

void sendMqtt(String topic, String message) { if (client.connected()) { Serial.println("Publishing: " + message + " to " + topic); client.publish(topic.c_str(), message.c_str()); } }

Want to kickstart your project?Use the new AI Studio to create your code