Controlling electric imp over the internet

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
e-r-a-n
 
Posts: 5
Joined: Thu Jan 17, 2013 2:39 am

Controlling electric imp over the internet

Post by e-r-a-n »

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?

User avatar
richa1
 
Posts: 41
Joined: Thu Jan 17, 2013 2:15 pm

Re: Controlling electric imp over the internet

Post by richa1 »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”