Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamct/sonoffsocket
Switching Sonoff Basic and Sonoff S20 (Webserver or MQTT).
https://github.com/jamct/sonoffsocket
cpp esp8266 sonoff
Last synced: 8 days ago
JSON representation
Switching Sonoff Basic and Sonoff S20 (Webserver or MQTT).
- Host: GitHub
- URL: https://github.com/jamct/sonoffsocket
- Owner: jamct
- License: gpl-3.0
- Created: 2017-12-21T16:06:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-05T14:56:04.000Z (over 3 years ago)
- Last Synced: 2023-02-27T12:32:58.989Z (over 1 year ago)
- Topics: cpp, esp8266, sonoff
- Language: C++
- Size: 29.3 KB
- Stars: 29
- Watchers: 10
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sonoffSocket
Switching Sonoff Basic and Sonoff S20 (Webserver, local button and MQTT).## Getting started
This project ist split in two parts: sonoffSimple/sonoffSimple.ino is just a simple demo as described [here](https://ct.de/yxgs).The more advanced software (sonoffSocket.ino) supports MQTT, toggle, status and is actively developed. Just copy sonoffSocket.ino into your Arduino-IDE folder. To use mqtt you have to install external library "PubSubClient". Change your SSID and WiFi-Key and activate MQTT if needed (choose a topic too).
Connect Sonoff Basic or Sonoff S20 to your FTDI-Adapter and flash it using the Arduino-IDE.## How it works
The socket can be controlled by opening /on (to activate) and /off to deactivate. If MQTT is enabled, send 1 or 0 to your chosen topic (defined at the beginning of your code).
Get the current status with /state and toggle with /toggle## More information
This repository is part of article ["Bastelfreundlich"](https://ct.de/yxgs) from German computer magazine "c't".