Search found 7 matches
- Wed Oct 12, 2022 9:21 am
- Forum: ESP8266 boards
- Topic: socket.fileno() not available in esp8266, Please suggest some alternative
- Replies: 1
- Views: 22530
Re: socket.fileno() not available in esp8266, Please suggest some alternative
I used id(socket) on pico w. Maybe that works on esp8266.
- Tue Sep 20, 2022 9:11 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W: Problem binding a socket to a UDP Multicast Group
- Replies: 7
- Views: 28028
Re: Pico W: Problem binding a socket to a UDP Multicast Group
Here's a stripped down test case for listening to UDP multicast broadcasts on 239.255.255.250:1900: Thanks again for raising this. I've submitted a PR to fix the wifi driver. The PR doesn't appear to have been approved upstream. Would it be possible to fork the driver, incorporate the fix locally a...
- Sun Aug 28, 2022 3:45 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W: Problem binding a socket to a UDP Multicast Group
- Replies: 7
- Views: 28028
- Wed Aug 24, 2022 3:41 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W: Problem binding a socket to a UDP Multicast Group
- Replies: 7
- Views: 28028
Re: Pico W: Problem binding a socket to a UDP Multicast Group
Here's a stripped down test case for listening to UDP multicast broadcasts on 239.255.255.250:1900: # wlan access SSID = '<ROUTER>' WPA2_PASS = "<PASSWORD>" ssid_ = SSID wpa2_pass = WPA2_PASS def do_connect(): import network sta_if = network.WLAN(network.STA_IF) if not sta_if.isconnected(): print("c...
- Wed Aug 24, 2022 12:44 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W: Problem binding a socket to a UDP Multicast Group
- Replies: 7
- Views: 28028
Re: Pico W: Problem binding a socket to a UDP Multicast Group
I suspect there is a bug preventing the socket joining a UDP multicast group
Code: Select all
# self.mreq = b'\xef\xff\xff\xfa\x00\x00\x00\x00'
self.ssock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, self.mreq)
- Wed Aug 24, 2022 11:38 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W: Problem binding a socket to a UDP Multicast Group
- Replies: 7
- Views: 28028
Pico W: Problem binding a socket to a UDP Multicast Group
I'm trying to get uPyEcho (Wemo emulator for Alexa discovery) to work on Pico W. I'm connected to wifi and MQTT using the async mqtt module. The following code is supposed to bind the socket to th UDP Multicast group ("239.255.255.250", 1900) which is what Alexa uses to discover Wemo devices. But I ...
- Wed Jul 27, 2022 2:44 pm
- Forum: ESP8266 boards
- Topic: timezone support in MicroPython ?
- Replies: 23
- Views: 93702
Re: timezone support in MicroPython ?
I wrote a small module to convert UTC to Local Time using daylight saving policies. It might help. See my gist for latest version and bug fixes: https://gist.github.com/Beormund/f0f39c72e066da497f6308d1964c9627 import utime # hemisphere [0 = Northern, 1 = Southern] # week [0 = last week of month, 1....