-->
Page 1 of 2

GPIO Interrupt and send HTTP

PostPosted: Tue Oct 21, 2014 5:51 am
by blackink
HI All,
I have a bunch of sensors I'd like to be able to monitor and I've been looking at these little wonders and would like to know: Does it have the resources to:
a) Have an Interrupt configured detect a GPIO transition
b) On receiving the interrupt, make an HTTP call to a server?

Thanks in advance

AB

Re: GPIO Interrupt and send HTTP

PostPosted: Tue Oct 21, 2014 11:52 am
by tinhead
yes it does

Re: GPIO Interrupt and send HTTP

PostPosted: Tue Oct 21, 2014 4:11 pm
by blackink
Thanks Tinhead - good to know that the capacity is there.

Where would I start looking to understand how interrupts are handle on the chip? I can't see any examples thus far.

Thanks,

AB

Re: GPIO Interrupt and send HTTP

PostPosted: Fri Oct 31, 2014 9:17 am
by Borstenhorst
I played a bit with the commands but was not able to enable the interrupts.
Thats the reason I am currently have a timer set up which is polling the pin... NAAAAH!!!

I did some research on that and found:
http://g-lab.ca/esp8266ex-gpio-applicat ... interface/

I haven't had the time to try those commands but maybe someone wants to do it and post an explanation?
Seems like there is just one GPIO interrupt handler and that you have to figure out what happened in the ISR, but this is just speculation, I look forward to get some Infos on that :)

For sending some HTTP on an event you might want to check my AT-example mod code
https://github.com/ThomasBarth/ESP8266- ... _baseCmd.c

and

https://github.com/ThomasBarth/ESP8266- ... at_ipCmd.c