micropython / micropython-esp32

Old port of MicroPython to the ESP32 -- new port is at https://github.com/micropython/micropython
MIT License
673 stars 216 forks source link

esp32/modsocket: Implement setsockopt(IP_ADD_MEMBERSHIP). #183

Closed Timmenem closed 6 years ago

Timmenem commented 6 years ago

These changes allow one to join multicast groups.

The changes are derived from #3249 that implements this feature for extmod/modlwip.c (e.g. ESP8266).

Usage stays the same and can also be tested with https://github.com/pfalcon/micropython-projs/blob/master/xiaomi-gateway-events.py (CPython, Micropython Unix, Micropython ESP8266 & Micropython ESP32).

dpgeorge commented 6 years ago

Thanks for the contribution. Merged in 56f1860288ba3951f2723ff2a1574cd66f42da5c