jokob-sk / NetAlertX

🖧🔍 WIFI / LAN intruder detector. Scans for devices connected to your network and alerts you if new and unknown devices are found.
GNU General Public License v3.0
3.13k stars 187 forks source link

Resolved issue with Paho V2 API #764

Closed ingoratsdorf closed 3 months ago

ingoratsdorf commented 3 months ago

Changed client creation logic to V2 API as we are already using Paho2.0. Changed version selection from Paho version (which should not have been a user choice) to MQTT Protocol selection, which can be v3 or v5. Most modern MQQTT brokers like Mosquitta or EMQX support v5. Set default MQTT version to 5.

Previously, when a user selected Paho V2, the callback signature was invalid and Python errored out.

jokob-sk commented 3 months ago

Thanks a lot @ingoratsdorf 🙏