Danielhiversen / PyXiaomiGateway

PyXiaomiGateway
MIT License
152 stars 55 forks source link

Fix: multicast bind should be MULTICAST_ADDRESS #198

Closed yegong closed 1 year ago

yegong commented 1 year ago

Fix: multicast bind should be MULTICAST_ADDRESS, it will be help in some environment

According to examples I found, lots of them indicate the binding address of muilticast should be the MULTICAST_GROUP instead of local address. https://huichen-cs.github.io/course/CISC7334X/20FA/lecture/pymcast/#the-receiver-program-mcastrecvpy is one of them.

It helps solving issue like not receiving any message from XiaomiGateway. Tested and works in local home-assistant environment.