From fed66310aadd2837dcea429f697eece7bf4c1286 Mon Sep 17 00:00:00 2001 From: Timothy Woo Date: Wed, 24 Jul 2019 16:59:22 -0400 Subject: [PATCH] Test with CloudMQTT --- Code/examples/SIM7000_MQTT_Demo/SIM7000_MQTT_Demo.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Code/examples/SIM7000_MQTT_Demo/SIM7000_MQTT_Demo.ino b/Code/examples/SIM7000_MQTT_Demo/SIM7000_MQTT_Demo.ino index 616223c..20d1f93 100644 --- a/Code/examples/SIM7000_MQTT_Demo/SIM7000_MQTT_Demo.ino +++ b/Code/examples/SIM7000_MQTT_Demo/SIM7000_MQTT_Demo.ino @@ -282,11 +282,10 @@ void loop() { if (!fona.MQTT_publish(TEMP_TOPIC, tempBuff, strlen(tempBuff), 1, 0)) Serial.println(F("Failed to publish!")); // Send temperature if (!fona.MQTT_publish(BATT_TOPIC, battBuff, strlen(battBuff), 1, 0)) Serial.println(F("Failed to publish!")); // Send battery level - fona.MQTT_subscribe(SUB_TOPIC, 0); // Topic name, QoS + fona.MQTT_subscribe(SUB_TOPIC, 1); // Topic name, QoS // Unsubscribe to topics if wanted: -// fona.MQTT_unsubscribe(GPS_TOPIC); -// fona.MQTT_unsubscribe(TEMP_TOPIC); +// fona.MQTT_unsubscribe(SUB_TOPIC); // Enable MQTT data format to hex // fona.MQTT_dataFormatHex(true); // Input "false" to reverse