Establishing an internet connection
After processing local data, establishing internet connectivity is necessary to report the data to the cloud. To conserve power, the IoT device typically doesn’t always need to maintain online connectivity. Instead, it should establish an internet connection only when it has data to transmit.
Assuming the use of a home Wi-Fi network to access the internet, you may encounter two basic situations:
- Normal situation: The MCU successfully connects to your home Wi-Fi router and obtains a valid IP address
- Abnormal situation: The MCU fails to connect to your home Wi-Fi router (not assigned a valid IP address) due to reasons such as weak signal strength or incorrect SSID and password
Continuing with https://mermaidchart.com, a flow diagram can be generated, as shown in the following chart. The following prompt was used to generate the diagram:
Task: Imagine you're planning to develop a temperature sensor end-device for...