mqtt_udp icon indicating copy to clipboard operation
mqtt_udp copied to clipboard

Network interface selection

Open ximen opened this issue 6 years ago • 3 comments

On systems with multiple network interfaces publish packets going through random interface and there is no option to select, which interface to use. Tested in pytthon3 library.

255.255.255.255 as destination address should be changed to particular interface broadcast address.

  • [X] Pyhon implementation

ximen avatar Feb 24 '19 17:02 ximen

Do you see it as a function to set interface to bind to?

dzavalishin avatar Mar 04 '19 09:03 dzavalishin

Yes, dedicated function would be perfect. Also additional optional parameter for send_* functions fits well.

ximen avatar Mar 05 '19 19:03 ximen

Did it, please see set_bind_address() and set_broadcast_address() in https://mqtt-udp.readthedocs.io/en/latest/#module-mqttudp-engine

dzavalishin avatar Mar 09 '19 14:03 dzavalishin