status,mcp,0

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
iron
Normal user
Posts: 110
Joined: 24 Sep 2016, 08:37
Location: Veria, Greece
Contact:

status,mcp,0

#1 Post by iron » 06 Jan 2020, 16:51

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
-D

TD-er
Core team member
Posts: 3137
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: status,mcp,0

#2 Post by TD-er » 07 Jan 2020, 16:26

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)

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests