I wish to buy an electric imp for some on/off switching in my house.
but i couldnt see exactly how i control it from the internet.
If i have android phone, can i use the app to login to my device and send it commands?
has anyone experienced the imp already?
Controlling electric imp over the internet
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- richa1
- Posts: 41
- Joined: Thu Jan 17, 2013 2:15 pm
Re: Controlling electric imp over the internet
The imp can receive info from an html form page via GET or POST. I just made a page with an ON and OFF button that tells the pins to write 0 or 1. I am using it to turn LEDs on and off, but you could just as easily use a relay.
Here is the part in the imp Wiki that talks about HTTP in and out.
http://devwiki.electricimp.com/doku.php?id=httpapi
They have a good example of how to format the POST for JSON delivery and how it is received in the Squirrel code
I hope that help.
Here is the part in the imp Wiki that talks about HTTP in and out.
http://devwiki.electricimp.com/doku.php?id=httpapi
They have a good example of how to format the POST for JSON delivery and how it is received in the Squirrel code
I hope that help.
Please be positive and constructive with your questions and comments.