Skip to content

Commit 29dda94

Browse files
authored
Create secrets.h
1 parent 9de604c commit 29dda94

File tree

1 file changed

+38
-0
lines changed
  • examples/ZED-F9P/Example18_PointPerfectClient

1 file changed

+38
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

Comments
 (0)