Search found 2 matches

by chaopi
Mon May 18, 2020 2:31 am
Forum: Programs, Libraries and Tools
Topic: usocket didn't find SO_BROADCAST
Replies: 3
Views: 357

Re: usocket didn't find SO_BROADCAST

:D thank you.
by chaopi
Thu May 14, 2020 5:13 am
Forum: Programs, Libraries and Tools
Topic: usocket didn't find SO_BROADCAST
Replies: 3
Views: 357

usocket didn't find SO_BROADCAST

I try using micropython with esp32 board to make a WOL server to wake up my PC. I found that I need codes like from socket import socket, AF_INET, SOCK_DGRAM, SOL_SOCKET, SO_BROADCAST # defind data, ip ... sock = socket(AF_INET, SOCK_DGRAM) sock.setsockopt(SOL_SOCKET, SO_BROADCAST, 1) sock.sendto(da...