Search found 2 matches
Search found 2 matches • Page 1 of 1
- Thu May 14, 2020 5:13 am
- Forum: Programs, Libraries and Tools
- Topic: usocket didn't find SO_BROADCAST
- Replies: 3
- Views: 357
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...