Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server unstable when listenling to udp socket #64

Open
AcThPaU opened this issue May 30, 2024 · 2 comments
Open

server unstable when listenling to udp socket #64

AcThPaU opened this issue May 30, 2024 · 2 comments

Comments

@AcThPaU
Copy link

AcThPaU commented May 30, 2024

esp.connect_AP(secrets["ssid"], secrets["password"])
pool = adafruit_connection_manager.get_radio_socketpool(esp)
sock = pool.socket(pool.AF_INET, pool.SOCK_DGRAM) # UDP socket
esp.start_server(1984, sock._socknum, conn_mode=1)

while True:
    n_bytes = esp.socket_available(sock._socknum)
    if n_bytes:
        bytes_read = esp.socket_read(sock._socknum, n_bytes)

Hardware: pyportal
NINA version: 1.7.7
CP version: 9.1.0 beta3
esp32spi version: frozen

a client is constantly sending udp packets to the host address

after a few minutes n_bytes is always zero, and in some occasions TimeoutError: Timed out waiting for SPI char

@AcThPaU
Copy link
Author

AcThPaU commented Jun 1, 2024

it's esp32spi library issue, the one frozen in pyportal 9.1.0 beta3 is buggy. ver. 8.3.1 works fine.

@AcThPaU AcThPaU closed this as completed Jun 1, 2024
@AcThPaU
Copy link
Author

AcThPaU commented Jun 4, 2024

TimeoutError: Timed out waiting for SPI char issue still present, it happens randomly from 30minutes to 12hours.

@AcThPaU AcThPaU reopened this Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant