Page 1 of 1

increment counter using JSON

Posted: Sunday 03 February 2019 10:15
by franzelare
I want to update a customer counter through JSON without first requesting the current value, just send a +1 to the counter

I know how to do this with LUA to read the value and add 1 than send the counter back, but want to simplify this for some slow IOT sensors

anyone knows if this can be done through JSON?

Re: increment counter using JSON

Posted: Monday 04 February 2019 20:03
by SweetPants
This increments a generic counter with 1

http://localhost:8080/json.htm?type=com ... 0&svalue=1