This demo project showcases the integration of the WFI32-IoT Development Board with the Avnet IoTConnect Platform, utilizing FreeRTOS for efficient multitasking. It leverages Avnet IoTC library (see Notes section forr details) and features regular or on demand transmission of built-in sensor readings to the platform and enables the execution of remote commands from the platform to control the board's LEDs, providing examples of data communication and interactive management for IoT applications.
- Secure WPA2 Wi-Fi connection setup with the Microchip WFI32-IoT Board.
- WolfSSL Transport Layer Security stack.
- IoTConnect platform connection with an X509 device certificate.
- Levereging ATECC608B on-board secure element for cloud authentication (Trust&GO).
- Data transmission from the board to the Avnet IoTConnect Platform using MQTT.
- Once-per-minute light and tempreature sensor data reporting.
- Board LEDS and board switches state reporting.
- Board LEDs control from IoTConnect dashboard.
Before you begin, ensure you have the following:
- Microchip WFI32-IoT Development Board.
- Access to the Avnet IoTConnect Platform.
- Microchip MPLAB X IDE 6.20 installed on your computer.
- XC32 v4.35 compiler from Microchip.
Follow these steps to get your Microchip WFI32-IoT Board connected to the Avnet IoTConnect Platform:
- Clone the project repository along with its submodules using git clone --recursive command.
- In MPLAB IDE, open the project from the cloned folder.
- In the MPLAB Harmony, upload this manifest file to install dependencies.
- Connect your Microchip WFI32-IoT Board to your computer with a USB cable.
- Flash drive with device certificate and Wi-Fi configuration file on it should appear in the system
- Copy the certificate and attach it to the device in the IoTConnect account.
- Provide proper Wi-Fi credentials in the WIFI.CFG file by replacing the line in it as follows CMD:SEND_UART=wifi ssid,password,2 where ssid and passord are valid credentials.
- Provide Endpoint URL and IoTConnect Device ID (Client ID) in the cloud.json file.
- Example uses the IoTConnect device based on the wfi32demo template, supporting 10 attributes and 4 different commands. The device template json file is included in the repo.
- IoTConnect Dashboard for viewing sensor data is available through this link.
Build and run the project using Run command form IDE.
Monitor the board's output in serial terminal to confirm a successful connection to the Wi-Fi network and the Avnet IoTConnect Platform and other logs from the board. Watch Avnet IoTConnect dashboard to see the incoming data from your board. Send command from the platform to see LED changes on the dashboard.
If you encounter any issues, please refer to the WFI32-IoT Board documentation and the [Avnet IoTConnect Platform documentation] (https://docs.iotconnect.io/iotconnect/). For further assistance, consider opening an issue in this repository.
Thanks to Avnet for the IoTConnect Platform and continious support.
Current version of the project uses this branch which is ahead opf master branch: https://github.com/avnet-iotconnect/iotc-c-lib/tree/protocol-v2.1