Controlling electric imp over the internet
Moderators: adafruit_support_bill, adafruit

Controlling electric imp over the internet

by e-r-a-n on Fri Jan 18, 2013 2:48 am

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?
e-r-a-n
 
Posts: 5
Joined: Thu Jan 17, 2013 2:39 am

Re: Controlling electric imp over the internet

by richa1 on Tue Feb 12, 2013 1:24 pm

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.
Richard A+

richa1
 
Posts: 22
Joined: Thu Jan 17, 2013 2:15 pm
Location: Seattle