Skip to content

Commit 7fa1319

Browse files
committed
Update PointPerfect Example18 - correct the topic for the IP dynamic keys
1 parent 360d6fb commit 7fa1319

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

examples/ZED-F9P/Example18_PointPerfectClient/Example18_PointPerfectClient.ino

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
If you don't have a platform with a Qwiic connection use the SparkFun Qwiic Breadboard Jumper (https://www.sparkfun.com/products/14425)
3737
Open the serial monitor at 115200 baud to see the output
3838
*/
39+
3940
#include <WiFi.h>
4041
#include <WiFiClientSecure.h>
4142
#include <ArduinoMqttClient.h> // Click here to get the library: http://librarymanager/All#ArduinoMqttClient
@@ -67,8 +68,11 @@ void setup()
6768
Serial.println(F("u-blox module connected"));
6869
myGNSS.setI2COutput(COM_TYPE_UBX); //Turn off NMEA noise
6970
myGNSS.setPortInput(COM_PORT_I2C, COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_SPARTN); // Be sure SPARTN input is enabled.
70-
71+
72+
myGNSS.setDGNSSConfiguration(SFE_UBLOX_DGNSS_MODE_FIXED); // Set the differential mode - ambiguities are fixed whenever possible
7173
myGNSS.setNavigationFrequency(1); //Set output in Hz.
74+
myGNSS.setVal8(UBLOX_CFG_SPARTN_USE_SOURCE, 0); // use IP source (default)
75+
7276
Serial.print(F("Connecting to local WiFi"));
7377
WiFi.begin(ssid, password);
7478
while (WiFi.status() != WL_CONNECTED) {
@@ -151,7 +155,7 @@ void beginClient()
151155
// Subscribe to MQTT and register a callback
152156
Serial.println(F("Subscribe to Topics"));
153157
mqttClient.onMessage(mqttMessageHandler);
154-
mqttClient.subscribe(MQTT_TOPIC_KEY);
158+
//mqttClient.subscribe(MQTT_TOPIC_KEY); // The ZED does not need the keys in this example. SPARTN is delivered via secure MQTT
155159
mqttClient.subscribe(MQTT_TOPIC_SPARTN);
156160
lastReceived_ms = millis();
157161
} //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
@@ -11,7 +11,8 @@ const char password[] = "<YOUR PASSWORD>";
1111
const char AWS_IOT_ENDPOINT[] = "pp.services.u-blox.com";
1212
const unsigned short AWS_IOT_PORT = 8883;
1313
// <Your PointPerfect Thing> -> Credentials -> IP key distribution topic
14-
const char MQTT_TOPIC_KEY[] = "/pp/key/ip";
14+
const char MQTT_TOPIC_KEY[] = "/pp/ubx/0236/ip"; // This topic provides the IP only dynamic keys in UBX format
15+
//const char MQTT_TOPIC_KEY[] = "/pp/ubx/0236/Lb"; // This topic provides the L-Band + IP dynamic keys in UBX format
1516
// <Your PointPerfect Thing> -> Credentials -> IP correction topic for EU/US region
1617
const char MQTT_TOPIC_SPARTN[] = "/pp/ip/us"; // choice of {eu, us}
1718

0 commit comments

Comments
 (0)