Status of GPIO pin always 0
Posted: 14 Jul 2018, 00:20
Hi
I have set GPIO13 as an input.
The devices page shows the value correctly as 1 or 0.
Also when I read http://<IP>/json, I can see the correct state:
How ever when I try to read the status using
the state is always 0:
What am I missing?
I have set GPIO13 as an input.
The devices page shows the value correctly as 1 or 0.
Also when I read http://<IP>/json, I can see the correct state:
Code: Select all
"Sensors":[
{
"TaskValues": [
{"ValueNumber":1,
"Name":"Switch",
"NrDecimals":0,
"Value":1
}],
Code: Select all
http://<IP>/control?cmd=status,GPIO,13
Code: Select all
{ "log": "", "plugin": 1, "pin": 13, "mode": "input", "state": 0 }