I am using the script from the NodeMCU Documentation (https://nodemcu.readthedocs.io/en/maste ... ject-model)
It is an exact cut and past, except inside a function where the filenames are passed in.
The problem is that it seems to be "stuck" in Basic mode.
A handle to file.open("filename", "r") only returns a boolean, never a handle.
For example:
print(file.open("index.html","r"))
Returns true as long as index.html exists.
I have tried things such as:
f = {}
f = file.open("index.html","r")
but it still turns f back into a boolean.
Help appreciated.