I’m trying to run an “HTML IN” input for my imp. Seems like this should be pretty straightforward, yet I’m missing something: So far as I can tell, the POSTed data never makes it to the implet. (imp + applet = implet?)
with at minimum a value parameter and optionally a channel parameter."
Sounds easy.
I’m trying a few different syntaxes all at once:
Imp!
Control via Electric Imp!
…and so far as I can see, the data isn’t making it out of the HTTP IN node. I’ve noodled it to connect to a BLINK-O-MATIC node, and added a line server.show(inhibit) to that same implet to be double sure, and whether I press the 1 or 0 buttons on my form page, nothing changes.
Could we get an example of what a form that’s dumping to an HTTP IN node should look like?
It’s still wouldn’t work for me, but I could see something I couldn’t before, now that I had the working example to alternate it with:
No matter which button I pressed, the blink-o-matic was set to “on”. That is, it got a non-zero value out. So that implied that it was hitting the HTTP IN node. Just that no matter what got put in, we never got a 0 out. (Even when it seemed like we should.)
Naturally, seeing that, I experimented some more.
Once I’d trimmed my code down to this version, it started working:
Imp!
Control via Electric Imp!
So something about the extra parameters was making it unhappy.
@epall - I know this might sound crazy, however some devices (Okay, AMX controllers) do not support opening a secure connection. Is there any chance you can open up the API channel without SSL?