Example of a connection with a Mosquitto MQTT-broker (version 2.0.18) in a (local) network.
https://mosquitto.org/
https://cedalo.com/mqtt-academy/
Mosquitto MQTT broker address in this example = 192.168.10.136:1883 (under the condition that the subnetworks, if in use, are well routed)
Not over websocket here!
Note: don't forget to enable the access for external clients in the mosquitto.conf !
See the documentation in this file.
The MQTT-broken could be started as Windows service but starting from a cmd-box give more information in case of problems.
The fischertechnik blocky has not (yet) implemented: message_callback_add
Python mosquitto MQTT client lib: https://pypi.org/project/paho-mqtt/
Note: Version 2 does not support Python 3.5 and 3.6.
If you are programming in directly in Python on the TXT4.0 (for example: remote with Visual Studio code)
On the TXT4.0 (Python 3.5 ?) you will need to use the latest version 1 (1.6.1)
https://pypi.org/project/paho-mqtt/1.6.1/
For testing I am using Node-Red on a Windows 10 system:
[info] Node-RED version: v3.1.9
[info] Node.js version: v21.5.0
[info] Windows_NT 10.0.19045 x64 LE
Simple Node Red test message flow
https://mosquitto.org/
https://cedalo.com/mqtt-academy/
Mosquitto MQTT broker address in this example = 192.168.10.136:1883 (under the condition that the subnetworks, if in use, are well routed)
Not over websocket here!
Note: don't forget to enable the access for external clients in the mosquitto.conf !
See the documentation in this file.
The MQTT-broken could be started as Windows service but starting from a cmd-box give more information in case of problems.
The fischertechnik blocky has not (yet) implemented: message_callback_add
Python mosquitto MQTT client lib: https://pypi.org/project/paho-mqtt/
Note: Version 2 does not support Python 3.5 and 3.6.
If you are programming in directly in Python on the TXT4.0 (for example: remote with Visual Studio code)
On the TXT4.0 (Python 3.5 ?) you will need to use the latest version 1 (1.6.1)
https://pypi.org/project/paho-mqtt/1.6.1/
For testing I am using Node-Red on a Windows 10 system:
[info] Node-RED version: v3.1.9
[info] Node.js version: v21.5.0
[info] Windows_NT 10.0.19045 x64 LE
Simple Node Red test message flow
Statistik: Verfasst von vleeuwen — 05 Mai 2024, 14:00