Http output

Hey there. I’m trying to send the state of led into HTTP site of my imp, to know if it on/off, is it possible??

Thanks in advance, Gal

Is it a LED that the imp is controlling?
In that case you probaly have a variable with its value already, just send that to the agent and use it in the generation of the website.

If its an external LED, you need a phototransistor, maybe the builtin one for blinkup can be used if its in an enclosed space.

Hi, @Gliani. Take a look at this article: The Interactive imp. It explains how to pass all kinds of data, such as the state of an imp’s pin, to the imp’s agent and on to other websites and/or apps.