Lua-RTOS-ESP32 icon indicating copy to clipboard operation
Lua-RTOS-ESP32 copied to clipboard

net.wf.scan(false) fails on every second call

Open Mynogs opened this issue 5 years ago • 2 comments

If I call net.wf.scan(false) on the console input it fails with this message:

stdin:1: 134217730:general fail stack traceback: [C]: in field 'scan' stdin:1: in main chunk [C]: in ?

Next time it works. Then it fails. Then it works and so on. Greetings

Mynogs avatar May 02 '20 08:05 Mynogs

This not errors, see WIKI if table is true: a Lua table with the scan's result, or an exception. Use Exception handling

ar055 avatar Jun 05 '20 17:06 ar055

Where is this behavior documented in the wiki? The description for net.wf.scan is only a few lines long. I don't find anything there.

I entered net.wf.scan(false) in the console. Therefore true and not false as parameters. Exception handling is for a Lua program, not for the console. I know that. Greetings

Mynogs avatar Jun 19 '20 07:06 Mynogs