https://github.com/getlarge/gatewaymanager
Gateway linking RF nodes with MQTT broker, based on MySensors
https://github.com/getlarge/gatewaymanager
Last synced: about 1 year ago
JSON representation
Gateway linking RF nodes with MQTT broker, based on MySensors
- Host: GitHub
- URL: https://github.com/getlarge/gatewaymanager
- Owner: getlarge
- License: apache-2.0
- Created: 2017-12-20T10:18:04.000Z (over 8 years ago)
- Default Branch: dev
- Last Pushed: 2018-05-09T09:51:41.000Z (about 8 years ago)
- Last Synced: 2025-02-14T06:51:18.338Z (over 1 year ago)
- Language: C++
- Size: 37.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# BIODIAG - GATEWAY
## Requirements
Arduino IDE - download the latest from arduino
- https://www.arduino.cc/en/Main/Software
Packages for ESP8266 development on Arduino IDE
- http://arduino.esp8266.com/stable/package_esp8266com_index.json
following libraries are required :
- FS
- WifiManager
- MySensors
- Bounce2
- ArduinoJson
- Ticker
## Installation
```
git clone git@framagit.org:getlarge/gateway_mqtt.git
```
Edit Arduino/libraries/MySensors/core/MyGatewayTransportMQTTClient.cpp to :
```
_MQTT_client.subscribe(MY_MQTT_SUBSCRIBE_TOPIC_PREFIX);
```
Then in `config.h.sample` file you may edit the following :
- Name your device for your wifi router ( DHCP )
```
#define MY_ESP8266_HOSTNAME "your_device_name"
```
- Protect the acces point
```
char ap_pass[30]="yourpassword",
```
## Usage
-Open any .ino file of the folder with Arduino IDE
-Edit your preferences
-Uncomment FS.Format the first time you upload
-Comment out FS.format
-Upload the code on your ESP8266 board
Topic structure: MY_MQTT_PUBLISH_TOPIC_PREFIX/NODE-ID/SENSOR-ID/CMD-TYPE/ACK-FLAG/SUB-TYPE
## Dev
Go to the dev branch for the latest and unstable development