Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
87da92a
update for ethernet connectivity
mirkopac Feb 17, 2024
34a454b
tutorial opta with cloudmqtt added
mirkopac Feb 18, 2024
7367c87
fix tutorial for mqtt
mirkopac Feb 18, 2024
6d23c06
Update content.md
mirkopac Feb 18, 2024
a337a77
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
mirkopac Feb 19, 2024
e843766
Update content/hardware/07.opta/opta-family/opta/tutorials/06.opta-az…
mirkopac Feb 19, 2024
166f877
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
mirkopac Feb 19, 2024
d3af4e8
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
mirkopac Feb 19, 2024
79442de
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
mirkopac Feb 19, 2024
b2d5ed9
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
mirkopac Feb 19, 2024
1e7c0b9
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
mirkopac Feb 19, 2024
58e7e31
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
mirkopac Feb 19, 2024
bf083b5
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
mirkopac Feb 19, 2024
9485bad
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
mirkopac Feb 19, 2024
e4494cf
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
mirkopac Feb 19, 2024
819de09
Update content/hardware/07.opta/opta-family/opta/tutorials/06.opta-az…
mirkopac Feb 19, 2024
9dc999e
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
jhansson-ard Feb 21, 2024
a583289
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
jhansson-ard Feb 21, 2024
4806aa8
Update content/hardware/07.opta/opta-family/opta/tutorials/17.opta-mq…
jhansson-ard Feb 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ This tutorial demonstrates the integration of Opta™ with Azure IoT. You will p

- **Reliable Transmission:** How to reliably transmit data from Opta™ to Azure IoT.

- **Connectivity** Knowing the various connectivity methods offered by Opta™.

## Required Hardware and Software

### Required Hardware
Expand Down Expand Up @@ -166,7 +168,29 @@ The example modified for Opta™ is available [here](assets/opta-azure-iot-tutor

To establish a connection to Azure IoT, you don't need to make any changes to your sketch. All the configurations necessary to make the transmission of data from Opta™ to the Microsoft Cloud work are enclosed in a few lines of code.

In particular, the information to be customized for the connection is represented by various **#define** in the **iot_configs.h** file.
In the file `Azure_IoT_Hub_Opta.ino`, at lines 6 and 7, you have the option to set the connection as Wi-Fi® or Ethernet based on the uncommented definition.

If you are using Ethernet, the code should be set up like this:

```cpp
/*--- Connection Type ---*/
// Comment or uncomment the define based on the type of connectivity used.
#define ETHERNET //at line 6
//#define WIFI //at line 7
```

If you are using Wi-Fi, the code should be set up like this:

```cpp
/*--- Connection Type ---*/
// Comment or uncomment the define based on the type of connectivity used.
#define ETHERNET //at line 6
//#define WIFI //at line 7
```

During the compilation of your sketch, the necessary parts of the code will be compiled based on the chosen connectivity.

The information for Azure IoT are instead present in the file **iot_configs.h**, in this file there are all the definitions necessary for the correct setup of the connection.

![Opta™ Azure IoT Tutorial Sketch- Defines section](assets/opta-azure-iot-tutorial-201329.png)

Expand Down Expand Up @@ -260,5 +284,6 @@ In conclusion to this tutorial, we have explored and customized a sample sketch
- **Azure IoT Configuration:** We explained how to obtain the necessary information from the device configuration on Azure IoT, including the hostname of your hub and the device key.
- **Integration with Azure IoT Hub:** We illustrated the process of configuring the definitions in the `iot_configs.h` file, which manages Wi-Fi connection and communication with Azure IoT Hub.
- **Code Customizations:** We provided guidance on further customizing the code, including adjusting the telemetry message sending interval and modifying the simulated data sent to Azure IoT.
- **Ethernet and Wi-Fi® Connectivity:** Now you can easily choose between Ethernet and Wi-Fi® connection by uncommenting the appropriate definition in the code. You've learned how to customize the sketch to fit your IoT needs quickly and effortlessly.

The tutorial provides a detailed guide to connect Opta™ to Azure IoT, allowing the secure and reliable transmission of data. This is just a starting point, and further customizations can be made based on the specific needs of the project. In case you want to dig deeper into the Azure IoT technology, check the [Azure IoT official documentation](https://learn.microsoft.com/en-us/azure/iot/).fSA
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.