Here is a link to the NodeMCU firmware - https://github.com/nodemcu/nodemcu-firmware
You can build this with the ESP toolchain (instructions on building the toolchain here). You can also use the NodeMCU flasher which has prebuilt firmware included - https://github.com/nodemcu/nodemcu-flasher
To connect to a telnet session and send/receive, you can use the following using the socket library:
conn=net.createConnection(net.TCP, false)
conn:on("receive", function(sck, c) print(c) end )
conn:connect(7505,"192.168.1.1")
local ok, err = conn:send("state\n")
conn:close()

Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.