-->
Page 2 of 2

Re: How to control esp8266 through my website domain name

PostPosted: Sat Dec 24, 2016 2:48 am
by villTech
a little detail of what martinayotte is saying:

server side:
1. create a file or database in your online server.
2. write value in the file/database when you press buttons from your webpage
3. make a script on your server that will read and echo contents of file/database written. common is php script

esp8266 side:
1. use arduino WebClient sample to do http request to your server, pointing to the php script.
2. esp8266 should receive contents of the file
3. parse received content according to your need ie. ON gpio if content is '1'. OFF if '0'.

you can also use ws/mqtt for a more responsive set up.
I'm using HiveMQ for mqtt broker
js client library from Eclipse Paho for my front-end
and PubSubClient library for esp8266

Re: How to control esp8266 through my website domain name

PostPosted: Sat Dec 24, 2016 5:05 am
by techasia
Thank you very much for elaborating what martinayotte has said. i will be in touch with you. :D

Re: How to control esp8266 through my website domain name

PostPosted: Thu Sep 28, 2017 2:05 pm
by Rawest
Were you able to find a solution? I'm trying to accomplish the same thing. I want to be able to control a temperature controller from anywhere using my website

Re: How to control esp8266 through my website domain name

PostPosted: Tue Oct 17, 2017 3:10 am
by PeteKnight
Have you guys looked at the Blynk app?
It doesn’t provide access via a web page, but it does make it very easy to control devices from any Android or IOS device. It also has webhooks, so you could add web control of you wish, but it won’t automatically generate your web page for you.

I looked at a wide variety of solutions for controlling home automation devices before eventually stumbling across Blynk. I’ve not looked back since. They also have an excellent community forum that provides support for users.

Pete.