Search found 7 matches

by radders
Tue Dec 10, 2019 1:48 pm
Forum: General Discussion and Questions
Topic: TCP/IP over Wifi
Replies: 0
Views: 1471

TCP/IP over Wifi

Hello, I'm using an ESP8266 board, and have a small program which creates an AP and waits for a Wifi connection, then opens a TCP/IP port and waits for a 'telnet' type connection on port 23: while station.isconnected() == False: pass print('Wifi Connection successful') print(station.ifconfig()) s = ...
by radders
Wed Mar 20, 2019 2:02 pm
Forum: ESP8266 boards
Topic: A way to catch any exception?
Replies: 8
Views: 21821

Re: A way to catch any exception?

TY. Simple when you know how :lol:
by radders
Mon Mar 11, 2019 1:53 pm
Forum: ESP8266 boards
Topic: A way to catch any exception?
Replies: 8
Views: 21821

Re: A way to catch any exception?

Peter,

I'm getting:

Code: Select all

NameError: name 'errno' isn't defined
Dave
by radders
Wed Feb 06, 2019 2:15 pm
Forum: ESP8266 boards
Topic: A way to catch any exception?
Replies: 8
Views: 21821

Re: A way to catch any exception?

I've got some code: except OSError as exc: if exc.args[0] == uerrno.EWOULDBLOCK: print ('EWOULDBLOCK') time.sleep(1) # short delay, no tight loops which came from a sample on a forum, but I get errors at the uerrno line. What is the correct implementation for this port of MicroPython, please?
by radders
Tue Feb 05, 2019 9:16 am
Forum: General Discussion and Questions
Topic: ESP8266 and _thread
Replies: 10
Views: 8075

Re: ESP8266 and _thread

Brilliant! Thank you.

Will read up on that.

Dave
by radders
Tue Feb 05, 2019 8:58 am
Forum: General Discussion and Questions
Topic: ESP8266 and _thread
Replies: 10
Views: 8075

Re: ESP8266 and _thread

Thank you. I open a socket, and wait for incoming data using socket.receive(). The issue I have is that this method blocks, preventing me from sending data to the same socket until the receive completes. I was hoping to create 2 threads, one for receive and one for sending. How can uasyncio help in ...
by radders
Mon Feb 04, 2019 4:46 pm
Forum: General Discussion and Questions
Topic: ESP8266 and _thread
Replies: 10
Views: 8075

ESP8266 and _thread

Hello,

I can't find out if _thread has been built into the ESP8266 yet.

I just downloaded the latest firmware (esp8266-20190125-v1.10.bin),
yet when I execute
import _thread
I get an error message
ImportError: no module named '_thread'

Please help!