Skip to content

Commit f181aab

Browse files
Update GettingStartedGuide.md
1 parent fe0152f commit f181aab

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

GettingStartedGuide.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,27 @@ I (3183) temp_pub_sub_demo: Task Publisher0 waiting for publish 0 to complete.
119119
```
120120

121121
2. On the AWS IoT console, select "Test" then select "MQTT test client". Under "Subscribe to a topic", type "#". (# is used to select all topics. You can also enter a specific topic such as /filter/Publisher0.) Click on "Subscribe", then confirm that the MQTT messages from the device are received.
122+
3. To change the LED power state, under "Publish to a topic" publish one of the following JSON payloads to the `/filter/TempSubPubLED` topic:
123+
124+
To turn the LED on:
125+
```json
126+
{
127+
"led":
128+
{
129+
"power": 1
130+
}
131+
}
132+
```
133+
134+
To turn the LED off:
135+
```json
136+
{
137+
"led":
138+
{
139+
"power": 0
140+
}
141+
}
142+
```
122143

123144
## 5 Perform firmware Over-the-Air Updates with AWS IoT
124145

@@ -140,7 +161,7 @@ Copy the public key certificate that you would have created in the 'Create a cod
140161

141162
The demo will read the certificate 'aws_codesign.crt' from your host filesystem and save it in memory.
142163

143-
### 5.3 Build an application binary with a higer version number, to be downloaded and activated on the device
164+
### 5.3 Build an application binary with a higher version number, to be downloaded and activated on the device
144165
To perform an OTA firmware update, you must go through these steps:
145166
1. Increment the version of the binary and create the signed binary image.
146167
2. Upload this image to an S3 bucket and create an OTA Update Job on the AWS IoT console.

0 commit comments

Comments
 (0)