docs/lua-modules/telnet.md
| Since | Origin / Contributor | Maintainer | Source |
|---|---|---|---|
| 2018-05-24 | Terry Ellison | Terry Ellison | telnet.lua |
The current version of this module exploits the stdin / stdout pipe functionality and task integration that is now build into the NodeNMCU Lua core.
There are two nice advantages of this core implementation:
Both have the same interface if required into the variable telnet
Open a telnet server based on the provided parameters.
telnet:open(ssid, pwd, port)
ssid and password. Strings. SSID and Password for the Wifi network. If these are
nil then the wifi is assumed to be configured or auto-configured.
port. Integer TCP listening port for the Telnet service. The default is 2323
Nothing returned (this is evaluated as nil in a scalar context).
Close a telnet server and release all resources. Also set the variable telnet to nil to fully reference and GC the resources.
telnet:close()
None
Nothing returned (this is evaluated as nil in a scalar context).