Skip to content

IoTConnect demo for Microchip WFI32-IoT with wolfSSL and Amazon-FreeRTOS.

Notifications You must be signed in to change notification settings

avnet-iotconnect/iotc-freertos-wolfssl-wfi32

Repository files navigation

Microchip WFI32-IoT Development Board Connection to Avnet IoTConnect Platform

Introduction

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.

Features

  • 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.

Prerequisites

Before you begin, ensure you have the following:

Getting Started

Follow these steps to get your Microchip WFI32-IoT Board connected to the Avnet IoTConnect Platform:

1. Project Configuration

  • 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.

2.IoTConnect counterpart

  • 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 device view
  • IoTConnect Dashboard for viewing sensor data is available through this link.

3. Compilation and Deployment

Build and run the project using Run command form IDE.

4. Testing the functionality

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.

Troubleshooting

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.

Acknowledgments

Thanks to Avnet for the IoTConnect Platform and continious support.

Notes

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

About

IoTConnect demo for Microchip WFI32-IoT with wolfSSL and Amazon-FreeRTOS.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages