Page 1 of 1

status,mcp,0

Posted: 06 Jan 2020, 16:51
by iron
Using mcp23017 we get 16 GPIOs (A0-A7 / B0-B7).

Under mcpgpio we can trigger pins 1 to 16 as expected.

Monitoring the pins we can get the status of those pins as well.

For some reason I can get the status of "mcpgio,0"

{
"log": "",
"plugin": 9,
"pin": 0,
"mode": "input",
"state": 0
}

I assume this is not supposed to exist and I shall ignore it ?

BTW shouldn't syntax of status be "status,mcpgpio,x" to ease the obvious ?

-D

Re: status,mcp,0

Posted: 07 Jan 2020, 16:26
by TD-er
Maybe you can also test the test build of this PR: https://github.com/letscontrolit/ESPEasy/pull/2778
There is some work in progress regarding moving the GPIO handling into single functions, regardless where there are used (still a huge work in progress)