Skip to content

Commit 35868c7

Browse files
committed
Re-add MQTT_TOPIC_KEY. Add the /pp/Lb/us topic.
1 parent 583a1f0 commit 35868c7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/ZED-F9P/Example18_PointPerfectClient/Example18_PointPerfectClient.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void setup()
7171

7272
myGNSS.setDGNSSConfiguration(SFE_UBLOX_DGNSS_MODE_FIXED); // Set the differential mode - ambiguities are fixed whenever possible
7373
myGNSS.setNavigationFrequency(1); //Set output in Hz.
74-
myGNSS.setVal8(UBLOX_CFG_SPARTN_USE_SOURCE, 0); // use IP source (default)
74+
myGNSS.setVal8(UBLOX_CFG_SPARTN_USE_SOURCE, 0); // Use IP source (default). Change this to 1 for L-Band (PMP)
7575

7676
Serial.print(F("Connecting to local WiFi"));
7777
WiFi.begin(ssid, password);
@@ -155,7 +155,7 @@ void beginClient()
155155
// Subscribe to MQTT and register a callback
156156
Serial.println(F("Subscribe to Topics"));
157157
mqttClient.onMessage(mqttMessageHandler);
158-
//mqttClient.subscribe(MQTT_TOPIC_KEY); // The ZED does not need the keys in this example. SPARTN is delivered via secure MQTT
158+
mqttClient.subscribe(MQTT_TOPIC_KEY);
159159
mqttClient.subscribe(MQTT_TOPIC_SPARTN);
160160
lastReceived_ms = millis();
161161
} //End attempt to connect

examples/ZED-F9P/Example18_PointPerfectClient/secrets.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const unsigned short AWS_IOT_PORT = 8883;
1414
const char MQTT_TOPIC_KEY[] = "/pp/ubx/0236/ip"; // This topic provides the IP only dynamic keys in UBX format
1515
//const char MQTT_TOPIC_KEY[] = "/pp/ubx/0236/Lb"; // This topic provides the L-Band + IP dynamic keys in UBX format
1616
// <Your PointPerfect Thing> -> Credentials -> IP correction topic for EU/US region
17-
const char MQTT_TOPIC_SPARTN[] = "/pp/ip/us"; // choice of {eu, us}
17+
const char MQTT_TOPIC_SPARTN[] = "/pp/ip/us"; // This topic provides the SPARTN corrections for IP only: choice of {eu, us}
18+
//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}
1819

1920
// <Your PointPerfect Thing> -> Credentials -> Client Id
2021
static const char MQTT_CLIENT_ID[] = "<ADD YOUR CLIENT ID HERE>";

0 commit comments

Comments
 (0)