I want to change the default userid and password for the ftp and telnet services.
I tried (via REPL) this example lifted directly from the Quick Reference page:
Code: Select all
from network import server
# init with new user, password and seconds timeout
server = server.init(login=('user', 'password'), timeout=60)
The server page specifies:Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: argument num/types mismatch
I'm not sure what the wildcard is supposed to signify here; something important?server.init(*, login=('micro', 'python'), timeout=300)
I tried to go to the source code to investigate, but could't locate it after a few minutes of looking. Probably right under my nose, but effectively invisible to me at this time.
Any help appreciated!
Thx,
Larry