This skeletion (template) aims to be a framework for ESP8266 Arduino projects.
- Wifi connection
- NTP time synchronization
- MQTT connection
- Internal LED flashs when MQTT messages are send/received
- all configs are in the platform.io file
- uses pass as password storage and other configurations
- can create FHEM device configuration (MQTT device)
- makefile integration
- Over the air update & monitoring (OTA)
The sample code included is used to switch an LED on and off via FHEM using MQTT.
This project use pass for storing user credentials. Take a look in bin/create_build_flags.py for further details.
The ESP_OTA_PASSWORD var is exported via bin/set_my_vars.sh
Please make sure that pass is installed & configured.
Please install platformio with you os packet manager.
make
make serial
make ota
make dump
make clean
make edit
make clean
make fhem
Note: The device config will be copied into the system clipboard automatically.
make monitor