{"id":15063408,"url":"https://github.com/mirzaim/mia-agent","last_synced_at":"2026-01-02T13:53:23.703Z","repository":{"id":257043353,"uuid":"857159795","full_name":"mirzaim/MiA-Agent","owner":"mirzaim","description":"NodeMCU-based IoT project using the MiA platform over the MQTT protocol","archived":false,"fork":false,"pushed_at":"2024-09-13T23:49:06.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T06:25:33.366Z","etag":null,"topics":["iot","iot-br","mia","mqtt","mqtt-broker","mqtt-client"],"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/mirzaim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-13T23:49:05.000Z","updated_at":"2024-09-13T23:52:57.000Z","dependencies_parsed_at":"2024-09-14T14:33:03.709Z","dependency_job_id":"3f9c0a02-dcac-4b96-a58e-50ded5bf3649","html_url":"https://github.com/mirzaim/MiA-Agent","commit_stats":null,"previous_names":["mirzaim/mia-agent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzaim%2FMiA-Agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzaim%2FMiA-Agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzaim%2FMiA-Agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzaim%2FMiA-Agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirzaim","download_url":"https://codeload.github.com/mirzaim/MiA-Agent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243761653,"owners_count":20343934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["iot","iot-br","mia","mqtt","mqtt-broker","mqtt-client"],"created_at":"2024-09-24T23:56:27.131Z","updated_at":"2026-01-02T13:53:23.658Z","avatar_url":"https://github.com/mirzaim.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IoT Agent\n\u003c!-- NodeMCU IoT Project with MiA IoT Platform --\u003e\n\nThis project demonstrates the use of a NodeMCU board to interact with the [**MiA (Middleware in Action)**](https://github.com/I1820/mia) IoT platform. The NodeMCU collects sensor data and sends it to the MiA broker using the MQTT protocol. The platform allows users to control and monitor IoT devices in real-time.\n\n## Features\n\n- Connects NodeMCU to MiA, the IoT platform\n- Uses MQTT protocol for communication\n- Sends sensor data (e.g., light intensity) to the broker\n\n## Installation\n\nThis section explains how to run an IoT agent. For instructions about running the MiA server, refer to [this guide](https://github.com/I1820/mia).\n\n1. **Clone the Repository:**\n   ```\n   git clone \u003crepository-link\u003e\n   ```\n\n2. **Open the Project:**\n   - If using Arduino IDE: Open `src/main.cpp`.\n   - If using PlatformIO: Open the project folder in your preferred code editor.\n\n3. **Install Dependencies:**\n   Install the required libraries using the Arduino Library Manager or PlatformIO.\n\n   - PubSubClient for MQTT communication\n   - WiFi for connecting to your network\n\n4. **Configure Wi-Fi and MiA Broker:**\n   Add the `src/arduino_secrets.h` file to set your Wi-Fi credentials and the MiA broker details:\n\n   ```c\n    #define SECRET_SSID \"your_SSID\"\n    #define SECRET_PASS \"your_password\"\n    #define BROKER_IP \"MiA_server_address\"\n   ```\n\n5. **Upload to NodeMCU:**\n   Connect your NodeMCU to your computer and upload the code using the appropriate method (Arduino IDE or PlatformIO).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirzaim%2Fmia-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirzaim%2Fmia-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirzaim%2Fmia-agent/lists"}