Skip to content

Commit 3cc7a91

Browse files
committed
Update content.md
1 parent 44063d8 commit 3cc7a91

File tree

1 file changed

+12
-6
lines changed
  • content/hardware/07.opta/opta-family/opta/tutorials/opta-azure-iot-tutorial-en

1 file changed

+12
-6
lines changed

content/hardware/07.opta/opta-family/opta/tutorials/opta-azure-iot-tutorial-en/content.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ The daily message limit for the **Free** plan is 8,000 and cannot be changed oth
104104

105105
After entering all the necessary information, you should have something similar to this:
106106

107+
![Arduino Opta Azure IoT Tutorial 5](assets/opta-azure-iot-tutorial-194559.png)
108+
107109
![Arduino Opta Azure IoT Tutorial 5](assets/opta-azure-iot-tutorial-195158.png)
108110

109111
After entering all the necessary information, you can click on **Review + create**, skipping the other configurations.
@@ -112,6 +114,8 @@ A final summary prompts you to check that the entered information is correct, af
112114

113115
![Arduino Opta Azure IoT Tutorial 6](assets/opta-azure-iot-tutorial-195244.png)
114116

117+
![Arduino Opta Azure IoT Tutorial 6](assets/opta-azure-iot-tutorial-194452.png)
118+
115119
You will be redirected to the creation and registration status page of the new IoT Hub; the operation takes a few moments.
116120

117121
![Arduino Opta Azure IoT Tutorial 7](assets/opta-azure-iot-tutorial-195326.png)
@@ -140,9 +144,7 @@ You will then have a page with fields filled in similar to this:
140144

141145
By clicking on **Save**, you will be redirected back to the list of devices.
142146

143-
![Arduino Opta Azure IoT Tutorial 12](
144-
145-
assets/opta-azure-iot-tutorial-195718.png)
147+
![Arduino Opta Azure IoT Tutorial 12](assets/opta-azure-iot-tutorial-195718.png)
146148

147149
Click on the name of the newly created device in the list of devices associated with your Hub. The device configuration page will be displayed. You don't need to make any changes to this page, but you will need to use the information provided on this page in the sketch to be uploaded to Arduino Opta.
148150

@@ -198,18 +200,22 @@ Finally, **IOT_CONFIG_DEVICE_KEY** requires entering the device's private key.
198200
199201
### Other Code Customizations
200202
201-
In the **iot_configs.h** file, you find a definition that allows indicating in milliseconds the time that must elapse between sending one telemetry message and the next. The relevant definition is **IOT_CONFIG_TELEMETRY_FREQUENCY_MS**.
203+
In the **iot_configs.h** file, you find a definition that allows indicating in milliseconds the time that must elapse between sending one telemetry message and the next. The relevant definition is **IOT_CONFIG_TELEMETRY_FREQUENCY_MS** at line 19.
202204
203205
In the code, it is set to 300,000 milliseconds, or 5 minutes:
204206
207+
![Arduino Opta Azure IoT Tutorial Sketch 1](assets/opta-azure-iot-tutorial-202105.png)
208+
205209
```cpp
206210
// Publish 1 message every 5 minutes
207211
#define IOT_CONFIG_TELEMETRY_FREQUENCY_MS 300000
208212
```
209-
210213
You can customize the value in milliseconds to change the time interval between sending messages.
211214

212-
In the **Azure_IoT_Hub_Opta.ino** file, you find a portion of code represented by the **generateTelemetry()** function, which is called to allow sending the message to Azure IoT:
215+
In the **Azure_IoT_Hub_Opta.ino** file, you find a portion of code represented by the **generateTelemetry()** function at line 329, which is called to allow sending the message to Azure IoT:
216+
217+
![Arduino Opta Azure IoT Tutorial Sketch 1](assets/opta-azure-iot-tutorial-202627.png)
218+
213219

214220
```cpp
215221
/*

0 commit comments

Comments
 (0)