Skip to content

[Question]use of readData() on lua interpreter #1092

Open
@kleffa

Description

@kleffa

local pin = readData([ESP201] P=4)
if pin == 1 then
print("[ESP201] P=4 V=0 ")
else
print("[ESP201] P=4 V=1 ")
end

I'm writing a couple of scripts like this one (just change state of flash on esp32cam). I know this can be just a digitalRead, but its about using readData() , this doesnt work, I missed something?
can readData used to read serial, like M27 data?

any help please to clarify it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions