Generation

generate functionMon, 10 Apr 2023

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

#include <TinyGsmClient.h> #include <PubSubClient.h> TinyGsm modem(SerialAT); TinyGsmClient client(modem); PubSubClient MQTT(client); void Mqtt_send(String topic , String message) { MQTT.publish(topic.c_str(), message.c_str()); }

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