[ALUG] Controlling a Raspberry PI I/O pins via web App

steve-ALUG at hst.me.uk steve-ALUG at hst.me.uk
Thu Oct 12 15:36:29 BST 2017


On 12/10/17 10:04, Simon Ransome wrote:
[SNIP]
>
>     elsif url eq "/myajaxhandler":
>
>         # get your LED state from URL params
>         self.send_response(200)
>         GPIO.setStuffHere()
>
So I guess to call this I'd just to a HTTP "Get" to a URL
"http://The.IP.Address.xx/myajaxhandler?Some=Params,Here=etc"

>

And then decode the params & bob's my uncle?

Steve



More information about the main mailing list