Search found 4 matches

by kiltedpython
Mon Jul 20, 2020 5:05 pm
Forum: General Discussion and Questions
Topic: FTP reset says paramaters needed?
Replies: 1
Views: 204

FTP reset says paramaters needed?

Using snippet from a wiki example, it keeps asking for an arg when there is no reason that there should be one added. Is it being called wrong or something? Pycom MicroPython 1.20.2.rc10 [v1.11-a159dee] on 2020-06-26; WiPy with ESP32 Type "help()" for more information. >>> import network >>> network...
by kiltedpython
Fri Jul 17, 2020 6:11 pm
Forum: General Discussion and Questions
Topic: Using sockets but keep getting syntax error.
Replies: 4
Views: 418

Re: Using sockets but keep getting syntax error.

Thank you so much. That was the ticket. :)
by kiltedpython
Fri Jul 17, 2020 2:37 pm
Forum: General Discussion and Questions
Topic: Using sockets but keep getting syntax error.
Replies: 4
Views: 418

Re: Using sockets but keep getting syntax error.

Thanks for the spelling fix but still seeing syntax error. MicroPython v1.12-2 on 2020-05-01; linux version Use Ctrl-D to exit, Ctrl-E for paste mode >>> import pyokuets >>> http_get(http://192.168.1.8/query/apps) Traceback (most recent call last): File "<stdin>", line 1 SyntaxError: invalid syntax ...
by kiltedpython
Thu Jul 16, 2020 11:04 pm
Forum: General Discussion and Questions
Topic: Using sockets but keep getting syntax error.
Replies: 4
Views: 418

Using sockets but keep getting syntax error.

Just need some basic http stuff but cannot seem to get some hidden syntax error. Any help is appreciated. import socket def http_get(url): _, _, host, path = url.split('/', 3) addr = socket.getaddrinfo(host, 8060)[0][-1] s = socket.socket() s.connect(addr) s.send(bytes('GET /%s HTTP/1.0\r\nHost: %s\...