|
| 1 | +//Your WiFi credentials |
| 2 | +const char ssid[] = "<YOUR SSID>"; |
| 3 | +const char password[] = "<YOUR PASSWORD>"; |
| 4 | + |
| 5 | +// Below infomation you can set after signing up with u-blox Thingstream portal |
| 6 | +// and after add a new New PointPerfect Thing |
| 7 | +// https://portal.thingstream.io/app/location-services/things |
| 8 | +// in the new PointPerfect Thing you go to the credentials page and copy past the values and certificate into this. |
| 9 | + |
| 10 | +// <Your PointPerfect Thing> -> Credentials -> Hostname |
| 11 | +const char AWS_IOT_ENDPOINT[] = "pp.services.u-blox.com"; |
| 12 | +const unsigned short AWS_IOT_PORT = 8883; |
| 13 | +// <Your PointPerfect Thing> -> Credentials -> IP key distribution topic |
| 14 | +const char MQTT_TOPIC_KEY[] = "/pp/key/ip"; |
| 15 | +// <Your PointPerfect Thing> -> Credentials -> IP correction topic for EU/US region |
| 16 | +const char MQTT_TOPIC_SPARTN[] = "/pp/ip/us"; // choice of {eu, us} |
| 17 | + |
| 18 | +// <Your PointPerfect Thing> -> Credentials -> Amazon Root Certificate |
| 19 | +static const char AWS_CERT_CA[] PROGMEM = R"EOF( |
| 20 | +-----BEGIN CERTIFICATE----- |
| 21 | +<ADD YOUR CERTICICATE HERE> |
| 22 | +-----END CERTIFICATE----- |
| 23 | +)EOF"; |
| 24 | +
|
| 25 | +// <Your PointPerfect Thing> -> Credentials -> Client Certificate |
| 26 | +static const char AWS_CERT_CRT[] PROGMEM = R"KEY( |
| 27 | +-----BEGIN CERTIFICATE----- |
| 28 | +<ADD YOUR CERTICICATE HERE> |
| 29 | +-----END CERTIFICATE----- |
| 30 | +)KEY"; |
| 31 | +
|
| 32 | +// Get this from Thingstream Portal |
| 33 | +// <Your PointPerfect Thing> -> Credentials -> Client Key |
| 34 | +static const char AWS_CERT_PRIVATE[] PROGMEM = R"KEY( |
| 35 | +-----BEGIN RSA PRIVATE KEY----- |
| 36 | +<ADD YOUR KEY HERE> |
| 37 | +-----END RSA PRIVATE KEY----- |
| 38 | +)KEY"; |
0 commit comments