Skip to content

io-developer/esp8266-mqtt-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP MQTT Switch

Configurable firmware for IoT switch based on ESP8266 chip (and maybe ESP32). Using Espressif SDK and MQTT protocol for messaging.

Install

Config

  • To put switch to configuration mode - quick turn off/on chip 3+ times. You should see slowly blinking builtin LED for 1 sec every second.
  • Discover WiFi. Find 'esp-XXXXXX' access point and connect with password esp_admin (/main/app_wifi.h APP_WIFI_DEFAULT_AP_PASS)
  • To request current WiFi config:
curl -X GET http://192.168.4.1/api/wifi/config
  • To update WiFi config. Example:
curl -X POST http://192.168.4.1/api/wifi/config --data '{"ssid": "yourssid", "password": "yourpass"}'
  • To request current MQTT config:
curl -X GET http://192.168.4.1/api/mqtt/config
  • To update MQTT config. Example:
curl -X POST http://192.168.4.1/api/mqtt/config --data '{"uri": "mqtt://your.mqtt.host",  "username": "mqtt", "password": "yourpass",  "topic_forceon": {"path": "home/ups/state/onbattery"}}'
  • Restart:
curl -X POST http://192.168.4.1/api/restart

API

Discover api endpoints & sources for more details here: /main/app_api*.c

About

IoT mqtt switch developed for ESP8266 chips. Based on Espressif SDK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy