File tree 4 files changed +7
-7
lines changed
examples/Google Cloud Platform IoT Core
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 7
7
8
8
It publishes a message every 5 seconds to "/devices/{deviceId}/state" topic
9
9
and subscribes to messages on the "/devices/{deviceId}/config" and
10
- "/devices/{deviceId}/commands/# topics.
10
+ "/devices/{deviceId}/commands/#" topics.
11
11
12
12
The circuit:
13
13
- MKR GSM 1400 board
@@ -107,7 +107,7 @@ void connectGSM() {
107
107
}
108
108
109
109
void connectMQTT () {
110
- Serial.print (" Attempting to MQTT broker: " );
110
+ Serial.print (" Attempting to connect to MQTT broker: " );
111
111
Serial.print (broker);
112
112
Serial.println (" " );
113
113
Original file line number Diff line number Diff line change 1
1
// GSM settings
2
2
#define SECRET_PINNUMBER ""
3
- #define SECRET_GPRS_APN "GPRS_APN" // replace your GPRS APN
3
+ #define SECRET_GPRS_APN "GPRS_APN" // replace with your GPRS APN
4
4
#define SECRET_GPRS_LOGIN "login" // replace with your GPRS login
5
5
#define SECRET_GPRS_PASSWORD "password" // replace with your GPRS password
6
6
Original file line number Diff line number Diff line change 7
7
8
8
It publishes a message every 5 seconds to "/devices/{deviceId}/state" topic
9
9
and subscribes to messages on the "/devices/{deviceId}/config" and
10
- "/devices/{deviceId}/commands/# topics.
10
+ "/devices/{deviceId}/commands/#" topics.
11
11
12
12
The circuit:
13
13
- MKR NB 1500 board
@@ -104,7 +104,7 @@ void connectNB() {
104
104
}
105
105
106
106
void connectMQTT () {
107
- Serial.print (" Attempting to MQTT broker: " );
107
+ Serial.print (" Attempting to connect to MQTT broker: " );
108
108
Serial.print (broker);
109
109
Serial.println (" " );
110
110
Original file line number Diff line number Diff line change 7
7
8
8
It publishes a message every 5 seconds to "/devices/{deviceId}/state" topic
9
9
and subscribes to messages on the "/devices/{deviceId}/config" and
10
- "/devices/{deviceId}/commands/# topics.
10
+ "/devices/{deviceId}/commands/#" topics.
11
11
12
12
The circuit:
13
13
- Arduino MKR WiFi 1010 or MKR1000
@@ -101,7 +101,7 @@ void connectWiFi() {
101
101
}
102
102
103
103
void connectMQTT () {
104
- Serial.print (" Attempting to MQTT broker: " );
104
+ Serial.print (" Attempting to connect to MQTT broker: " );
105
105
Serial.print (broker);
106
106
Serial.println (" " );
107
107
You can’t perform that action at this time.
0 commit comments