From 35868c7869c77739b6f9eded00e9d7a3661e8665 Mon Sep 17 00:00:00 2001 From: PaulZC Date: Thu, 17 Mar 2022 17:29:21 +0000 Subject: [PATCH] Re-add MQTT_TOPIC_KEY. Add the /pp/Lb/us topic. --- .../Example18_PointPerfectClient.ino | 4 ++-- examples/ZED-F9P/Example18_PointPerfectClient/secrets.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/ZED-F9P/Example18_PointPerfectClient/Example18_PointPerfectClient.ino b/examples/ZED-F9P/Example18_PointPerfectClient/Example18_PointPerfectClient.ino index a573d32..13de052 100644 --- a/examples/ZED-F9P/Example18_PointPerfectClient/Example18_PointPerfectClient.ino +++ b/examples/ZED-F9P/Example18_PointPerfectClient/Example18_PointPerfectClient.ino @@ -71,7 +71,7 @@ void setup() myGNSS.setDGNSSConfiguration(SFE_UBLOX_DGNSS_MODE_FIXED); // Set the differential mode - ambiguities are fixed whenever possible myGNSS.setNavigationFrequency(1); //Set output in Hz. - myGNSS.setVal8(UBLOX_CFG_SPARTN_USE_SOURCE, 0); // use IP source (default) + myGNSS.setVal8(UBLOX_CFG_SPARTN_USE_SOURCE, 0); // Use IP source (default). Change this to 1 for L-Band (PMP) Serial.print(F("Connecting to local WiFi")); WiFi.begin(ssid, password); @@ -155,7 +155,7 @@ void beginClient() // Subscribe to MQTT and register a callback Serial.println(F("Subscribe to Topics")); mqttClient.onMessage(mqttMessageHandler); - //mqttClient.subscribe(MQTT_TOPIC_KEY); // The ZED does not need the keys in this example. SPARTN is delivered via secure MQTT + mqttClient.subscribe(MQTT_TOPIC_KEY); mqttClient.subscribe(MQTT_TOPIC_SPARTN); lastReceived_ms = millis(); } //End attempt to connect diff --git a/examples/ZED-F9P/Example18_PointPerfectClient/secrets.h b/examples/ZED-F9P/Example18_PointPerfectClient/secrets.h index a40ca5d..1586e52 100644 --- a/examples/ZED-F9P/Example18_PointPerfectClient/secrets.h +++ b/examples/ZED-F9P/Example18_PointPerfectClient/secrets.h @@ -14,7 +14,8 @@ const unsigned short AWS_IOT_PORT = 8883; const char MQTT_TOPIC_KEY[] = "/pp/ubx/0236/ip"; // This topic provides the IP only dynamic keys in UBX format //const char MQTT_TOPIC_KEY[] = "/pp/ubx/0236/Lb"; // This topic provides the L-Band + IP dynamic keys in UBX format // -> Credentials -> IP correction topic for EU/US region -const char MQTT_TOPIC_SPARTN[] = "/pp/ip/us"; // choice of {eu, us} +const char MQTT_TOPIC_SPARTN[] = "/pp/ip/us"; // This topic provides the SPARTN corrections for IP only: choice of {eu, us} +//const char MQTT_TOPIC_SPARTN[] = "/pp/Lb/us"; // This topic provides the SPARTN corrections for L-Band and L-Band + IP: choice of {eu, us} // -> Credentials -> Client Id static const char MQTT_CLIENT_ID[] = "";