If any of 4 logic inputs activated, trigger an HTTP POST


hi

i trying make 4 zone alarm arduino ethernet.

i have 4 contact inputs sensors in carpet in different rooms. may closed 1/2 second, maybe 10 seconds. not more 1 closure per second on 1 sensor, may need debounce.

if input closes, want make post php script can log input, @ time, sql database.

i can php , sql ok, struggling know how approach coding on arduino trigger post.

i see 2 pins available hardware interrupt, perhaps don't need hardware interrupt?

i new sort of programming bit lost.  have managed make http post internal loop count, not 4 logic inputs.

any guidance appreciated!

thanks

since you're struggling, try minimal version working. no need interrupts, poll inputs. use digitalread on each 1 in turn , if contact closed, call routine post.

ultimately, you'll want send message when contact becomes closed, mark i, i'd rather overwhelmed reports , have working.


Arduino Forum > Topics > Home Automation and Networked Objects > If any of 4 logic inputs activated, trigger an HTTP POST


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code