Skip to content

Conversation

pprotschka
Copy link

added basic http get ON/OFF functionality for use with home automation such as EG or Openhab.

just type http://yourIP/on.html in your fav browser to turn on switch (replace on with off to turn off) http://yourip/status.html simply responds a 1 or 0 for switch status.

added basic http get ON/OFF functionallity
just type http://yourip/on.html to turn on switch (replace on with off to turn off)

 http://yourip/status.html simply responds a 1 or 0 for switch status.
String device_name;

const int relayPin = D1;
const int relayPin = LED_BUILTIN;
Copy link
Owner

@kakopappa kakopappa Mar 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work.

Should be D1 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants