Skip to main content
12 events
when toggle format what by license comment
Jul 31, 2019 at 9:00 history tweeted twitter.com/StackArduino/status/1156489827417804800
Jul 31, 2019 at 7:02 comment added user58497 I know it is very old post but can you please show how to parse POST method with your code? It should be very useful for beginners like me :-) Thank you so much! PPT
Jul 13, 2015 at 11:26 vote accept Jerry
Jul 12, 2015 at 15:02 comment added Jerry Thanks Gerben! I will try using Gammon's code below, but with the addition of using your advice about the switch-case.
Jul 12, 2015 at 12:09 comment added Gerben Extract the query string once, and store it in a variable. Next test whether this variable is 'a1o' or 'a1c', etc. Using switch-case would be faster than a whole list of if statements.
Jul 12, 2015 at 2:15 answer added Nick Gammon timeline score: 8
Jul 12, 2015 at 1:49 comment added Jerry There's a pattern, but it doesn't have to be that way. Currently it goes: a1o, a1c, a2o, a2c, etc until a5o, a5c. Then it starts: b1o, b1c, etc. ('o' stands for 'open' and 'c' stands for 'close', it's opening and closing different wireless outlets). I would have no problem though renaming them all, like just giving them all numbers or a clear pattern, if there was a way to make it parse faster.
Jul 12, 2015 at 1:47 comment added Jerry yes, that's exactly how it looks: 192.168.0.180?a1o
Jul 12, 2015 at 1:24 comment added Nick Gammon Maybe state what these 40 GET variables are. Is there a pattern? Eg. a1o, a1c, a2o, a2c, a3o, a3c ... ?
Jul 12, 2015 at 1:23 comment added Nick Gammon Can you post an example of the sort of input you are processing? Is it, perhaps: http://192.168.0.180?a1o or http://192.168.0.180?a1c, or might you have multiple of them on the GET line?
Jul 12, 2015 at 0:18 review First posts
Jul 12, 2015 at 1:24
Jul 12, 2015 at 0:17 history asked Jerry CC BY-SA 3.0