File tree 2 files changed +4
-3
lines changed
examples/ZED-F9P/Example18_PointPerfectClient 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ void setup()
71
71
72
72
myGNSS.setDGNSSConfiguration (SFE_UBLOX_DGNSS_MODE_FIXED); // Set the differential mode - ambiguities are fixed whenever possible
73
73
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 )
75
75
76
76
Serial.print (F (" Connecting to local WiFi" ));
77
77
WiFi.begin (ssid, password);
@@ -155,7 +155,7 @@ void beginClient()
155
155
// Subscribe to MQTT and register a callback
156
156
Serial.println (F (" Subscribe to Topics" ));
157
157
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);
159
159
mqttClient.subscribe (MQTT_TOPIC_SPARTN);
160
160
lastReceived_ms = millis ();
161
161
} // End attempt to connect
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ const unsigned short AWS_IOT_PORT = 8883;
14
14
const char MQTT_TOPIC_KEY [] = "/pp/ubx/0236/ip" ; // This topic provides the IP only dynamic keys in UBX format
15
15
//const char MQTT_TOPIC_KEY[] = "/pp/ubx/0236/Lb"; // This topic provides the L-Band + IP dynamic keys in UBX format
16
16
// <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}
18
19
19
20
// <Your PointPerfect Thing> -> Credentials -> Client Id
20
21
static const char MQTT_CLIENT_ID [] = "<ADD YOUR CLIENT ID HERE>" ;
You can’t perform that action at this time.
0 commit comments