|
1 | 1 | // You can set the information below after signing up with the u-blox Thingstream portal
|
2 |
| -// and adding a new New PointPerfect Thing |
| 2 | +// and adding a new New PointPerfect Thing (L-Band or L-Band + IP) |
3 | 3 | // https://portal.thingstream.io/app/location-services/things
|
4 | 4 | // In the new PointPerfect Thing, you go to the credentials tab and copy and paste the IP Dynamic Keys here.
|
5 | 5 | //
|
6 | 6 | // The keys are valid from a particular GPS Week Number and Time of Week.
|
7 | 7 | // Looking at the credentials tab, the current key expires 23:59 Feb 11th 2022.
|
8 | 8 | // This means the next key is valid _from_ Midnight Feb 12th 2022.
|
9 |
| -// That is GPS Week 2196. The GPS Time of Week in seconds is 518418. |
| 9 | +// That is GPS Week 2196. The GPS Time of Week in seconds is 518400. |
10 | 10 | // Working backwards, the current key became valid exactly 4 weeks earlier (Midnight Jan 15th 2022).
|
11 | 11 | //
|
12 | 12 | // See: https://www.labsat.co.uk/index.php/en/gps-time-calculator
|
13 | 13 | //
|
14 | 14 | // The keys are given as: 32 hexadecimal digits = 128 bits = 16 Bytes
|
| 15 | +// |
| 16 | +// The next example shows how to retrieve the keys using ESP32 WiFi and MQTT. |
| 17 | +// You can cut and paste the keys and GPS week/time-of-week from that example into here. |
15 | 18 |
|
16 | 19 | const uint8_t currentKeyLengthBytes = 16;
|
17 |
| -const char currentDynamicKey[] = "f742bd6b7248043177dd649141d8fb0b"; |
18 |
| -const uint16_t currentKeyGPSWeek = 2192; |
19 |
| -const uint32_t currentKeyGPSToW = 518418; |
| 20 | +const char currentDynamicKey[] = "<ADD YOUR L-Band or L-Band + IP DYNAMIC KEY HERE>"; |
| 21 | +const uint16_t currentKeyGPSWeek = 2192; // Update this when you add new keys |
| 22 | +const uint32_t currentKeyGPSToW = 518400; |
20 | 23 |
|
21 | 24 | const uint8_t nextKeyLengthBytes = 16;
|
22 |
| -const char nextDynamicKey[] = "8206........................29f4"; |
23 |
| -const uint16_t nextKeyGPSWeek = 2196; |
24 |
| -const uint32_t nextKeyGPSToW = 518418; |
| 25 | +const char nextDynamicKey[] = "<ADD YOUR L-Band or L-Band + IP DYNAMIC KEY HERE>"; |
| 26 | +const uint16_t nextKeyGPSWeek = 2196; // Update this when you add new keys |
| 27 | +const uint32_t nextKeyGPSToW = 518400; |
0 commit comments