Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mirzaim/mia-agent
NodeMCU-based IoT project using the MiA platform over the MQTT protocol
https://github.com/mirzaim/mia-agent
iot iot-br mia mqtt mqtt-broker mqtt-client
Last synced: 26 days ago
JSON representation
NodeMCU-based IoT project using the MiA platform over the MQTT protocol
- Host: GitHub
- URL: https://github.com/mirzaim/mia-agent
- Owner: mirzaim
- License: mit
- Created: 2024-09-13T23:49:05.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T23:49:06.000Z (about 2 months ago)
- Last Synced: 2024-10-12T23:20:09.871Z (26 days ago)
- Topics: iot, iot-br, mia, mqtt, mqtt-broker, mqtt-client
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IoT Agent
This 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.
## Features
- Connects NodeMCU to MiA, the IoT platform
- Uses MQTT protocol for communication
- Sends sensor data (e.g., light intensity) to the broker## Installation
This section explains how to run an IoT agent. For instructions about running the MiA server, refer to [this guide](https://github.com/I1820/mia).
1. **Clone the Repository:**
```
git clone
```2. **Open the Project:**
- If using Arduino IDE: Open `src/main.cpp`.
- If using PlatformIO: Open the project folder in your preferred code editor.3. **Install Dependencies:**
Install the required libraries using the Arduino Library Manager or PlatformIO.- PubSubClient for MQTT communication
- WiFi for connecting to your network4. **Configure Wi-Fi and MiA Broker:**
Add the `src/arduino_secrets.h` file to set your Wi-Fi credentials and the MiA broker details:```c
#define SECRET_SSID "your_SSID"
#define SECRET_PASS "your_password"
#define BROKER_IP "MiA_server_address"
```5. **Upload to NodeMCU:**
Connect your NodeMCU to your computer and upload the code using the appropriate method (Arduino IDE or PlatformIO).