Page 1 of 1

XAsyncSockets ?

Posted: Wed Aug 05, 2020 9:10 pm
by uxhamby
OK, so where am I going wrong here?

XAsyncSockets

The hardware platforms are an identical pair of 38 pin ebay generic ESP32 4096 dev boards.

tcpCli:

Code: Select all

Connection successful
('192.168.55.134', '255.255.255.0', '192.168.55.1', '192.168.55.3')
Host Name:  ESP32_6
GMT time:    (2020, 8, 5, 21, 5, 49, 2, 218)
Local time:  (2020, 8, 5, 17, 5, 49, 2, 218)
Device MAC address:  b'246f289db590'
MicroPython v1.12-87-g96716b46e on 2020-01-26; ESP32 module with ESP32
Type "help()" for more information.
>>> import tcpCli
Error to create client 1...
Error to create client 2...
Error to create client 3...
Error to create client 4...
Error to create client 5...
Error to create client 6...
tcpSrv:

Code: Select all

Connection successful
('192.168.55.122', '255.255.255.0', '192.168.55.1', '192.168.55.3')
Host Name:  ESP32_7
GMT time:    (2020, 8, 5, 21, 3, 25, 2, 218)
Local time:  (2020, 8, 5, 17, 3, 25, 2, 218)
Device MAC address:  b'246f28170eb4'
MicroPython v1.12-87-g96716b46e on 2020-01-26; ESP32 module with ESP32
Type "help()" for more information.
>>> import tcpSrv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "tcpSrv.py", line 46, in <module>
  File "XAsyncSockets.py", line 380, in Create
  File "XAsyncSockets.py", line 1023, in __init__
  File "XAsyncSockets.py", line 989, in __init__
MemoryError: memory allocation failed, allocating 4096 bytes
>>> 

The readme file at the project GitHub page seems extremely esoteric, there are only two (unhelpful) forum posts found with a search on 'XAsyncSockets' and Google/Duckduck turn up little. Clearly I am in over my head here, anyone care to toss me a lifeline?

Thanks,

Brian H.

Re: XAsyncSockets ?

Posted: Thu Aug 06, 2020 9:13 am
by pythoncoder
This is evidently a privately maintained repository owned by Jean-Christophe Bos (@jczic). Unless anyone else here is using it, your best bet would be to contact the author.

Alternatively consider other, more widely used, repositories.

Re: XAsyncSockets ?

Posted: Fri Aug 07, 2020 12:00 am
by uxhamby
Thanks Peter,
contact the author.
Yes, it was HIS reply I was attempting to elicit.

Cheers,

Brian H