{"id":16008588,"url":"https://github.com/jimbobbennett/wio-terminal-azure-sample","last_synced_at":"2026-04-12T12:48:41.331Z","repository":{"id":81417314,"uuid":"366226124","full_name":"jimbobbennett/wio-terminal-azure-sample","owner":"jimbobbennett","description":"A demo Arduino project showing how to use Azure IoT Hub with the Wio Terminal. Built using PlatformIO, but can be implemented using the Arduino IDE.","archived":false,"fork":false,"pushed_at":"2021-05-11T02:06:38.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T02:25:05.916Z","etag":null,"topics":["arduino","azure","cpp","iot","platformio","seeedstudio","wio-terminal"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimbobbennett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-11T01:53:21.000Z","updated_at":"2023-09-23T10:18:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"16a1a872-89bd-4050-b520-6e5e26b84cbf","html_url":"https://github.com/jimbobbennett/wio-terminal-azure-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jimbobbennett/wio-terminal-azure-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbobbennett%2Fwio-terminal-azure-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbobbennett%2Fwio-terminal-azure-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbobbennett%2Fwio-terminal-azure-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbobbennett%2Fwio-terminal-azure-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimbobbennett","download_url":"https://codeload.github.com/jimbobbennett/wio-terminal-azure-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbobbennett%2Fwio-terminal-azure-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31715492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","azure","cpp","iot","platformio","seeedstudio","wio-terminal"],"created_at":"2024-10-08T12:43:42.001Z","updated_at":"2026-04-12T12:48:41.297Z","avatar_url":"https://github.com/jimbobbennett.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wio Terminal Azure IoT sample\n\nThis repo shows sample code for connecting the Wio Terminal to Azure IoT Hub. This uses the [Azure Arduino SDK](https://github.com/Azure/azure-iot-pal-arduino).\n\nThis code connects to IoT Hub, then sends telemetry in the `loop` function. It also listens to direct method requests.\n\nThe IoT Hub code runs single-threaded, so you need to call `IoTHubDeviceClient_LL_DoWork(_device_ll_handle)` to process messages from IoT Hub. Instead of a long `delay` in the `loop` function, this code shows how to implement a long delay as lots of short delays with calls to `IoTHubDeviceClient_LL_DoWork`.\n\nWhen your device connects, part of the internal connection logic uses the current time to build a key. This means the device time has to be correct, and this is implemented in the `ntp.h` file, with code to get the current time from an NTP server and set it on the Wio Terminals RTC.\n\n## Instructions\n\n1. Create an Azure IoT Hub\n1. Create a device and get the connection string\n1. Open this folder in VS Code using the PlatformIO extension\n1. Set the `CONNECTION_STRING` constant in `config.h` in the `src` folder to the device connection string\n1. Set the `SSID` and `PASSWORD` constants in `config.h` in the `src` folder to the relevant values for your WiFi\n1. Build and deploy to your Wio Terminal using PlatformIO\n\n\u003e If you are using the Arduino IDE, you can copy the `main.cpp` code into your sketch file, and add the other files in the `src` folder into your sketch folder. You will need to choose the Wio Terminal in the board manager and add the following libraries using the library manager:\n\u003e\n\u003e * bblanchon/ArduinoJson\n\u003e * seeed-studio/Seeed Arduino rpcWiFi\n\u003e * seeed-studio/Seeed Arduino FS\n\u003e * seeed-studio/Seeed Arduino SFUD\n\u003e * seeed-studio/Seeed Arduino rpcUnified\n\u003e * seeed-studio/Seeed_Arduino_mbedtls\n\u003e * seeed-studio/Seeed Arduino RTC\n\u003e * arduino-libraries/AzureIoTHub\n\u003e * azure/AzureIoTUtility\n\u003e * azure/AzureIoTProtocol_MQTT\n\u003e * azure/AzureIoTProtocol_HTTP\n\u003e * azure/AzureIoTSocket_WiFi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimbobbennett%2Fwio-terminal-azure-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimbobbennett%2Fwio-terminal-azure-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimbobbennett%2Fwio-terminal-azure-sample/lists"}