mosquitto_sub 解析: mosquitto_sub 是订阅端终端运行的命令,-v是打印详细信息, -t 是需要订阅的主题,后面紧跟的参数就是主题,这里主题叫test/topic。 mosquitto_pub 是发布端终端运行的命令, -t 是需要发布的主题,后面紧跟的参数就是主题, -m 就是开始发布内容,后面紧跟的参数就是需要发布的内容,这里值为 hel...
first here's my subscriber, you can see that it works, using mqtt.fx to publish, and it's using the same ca_certificate.pem to publish Calebs-MBP:predictive-health-gateway calebcushing$ mosquitto_sub -h localhost -p 8883 -t mytopic --deb...
mosquitto_pub -d -q 1 -h $_server -p 1883 -t v1/devices/me/telemetry -u $_token -m “{dev_mac:$_mac_address}” If I change the “:” for “_” it works … but I need the MacAddress or the timestamp. Thank you very much. Best regards A. Reply stevesays: November 24, ...
PROCUREMENT OF23SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS24INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN25CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE