- Fri Sep 15, 2017 1:08 pm
#70020
Hi devsaurus,
thank you so much for guiding me. As I'm an almost totally noob to Lua I had "tomatoes" on my eyes.
Thank you so much for "taking them away"
)
I wasn't able to understand how net.createConnection() is related to the net.socket-submodule.
I made the wrong conclusion that each character-sequence behind "net" is a different and unrelated command.
As there was nothing written about events under net.createConnection() I made the wrong conclusion
it is not documented. I have searched for "event" and of course found "net.socket:on()" but again I made the wrong conclusion that "net.socket:on()" is a different command which is NOT related to "net.createConnection() "
experts never would have this problem because they are experts.
I call this effect "expert-blindness-to-beginners-difficulties"
The docs are written VERY short assuming that readers know a lot about Lua in general already.
Do you happen to know if somebody already started a "Beginners Guide to nodeMCU-Lua" ?
if yes let me know. I would like to contribute to that while I'm learning myself as a beginner I'm an "expert" for beginners difficulties. If there is nothing liek that yet I will start it on my own.
Now as I have the overview about the events I can do experiments with it to learn about its behaviour.
If you happen to have Lua-code that shows how data can be exchanged between two ESP8266-modules over WiFi in the appropriate eventdriven stile (=not quick & dirty) but with maximum possible reliability this would make me ultra-hyper-happy.
best regards
Stefan