Left here for archival purposes.

User avatar
By iwl
#43265 If I write at serial console
=wifi.sta.getip()
I get
IP Mask Gateway
If I use the telnet.lua server example and type same command I get only
IP
After some testing I've found that at serial console I get the same (IP only) with
print(wifi.sta.getip())
In the telnet.lua the output redirection ist done with
sv:listen(8080, function(conn)
print("Wifi console connected.")

function s_output(str)
if (conn~=nil) then
conn:send(str)
end
end
node.output(s_output,0)

It seems this cuts the output somehow like the print function and so I don't have a real transparent telnet.
Seems like output isn't just one string but some tuple or so not passing trough the layers completely.