![]() ![]() ![]() So after this I am right to assume that bridge works well. I get that message in first terminal where I used mosquitto_sub command. Now, in one terminal I can use mosquitto_sub -t in_topic and in other terminal I use mosquitto_pub -h -t in_topic -m message. I configured nf file so I can bridge with, I added these lines: connection test This way even when I lose internet access I can have local broker to interact with local clients. And that I could use clients like laptop or phone, and use them to publish and subsccribe messages with local broker. The reason I have choose Cloudmqtt for online mosquitto broker is because I tought that local mosquitto remote mosquitto bridge should work. Remote_password password_of the_user_on_cloudmqtt Remote_usename username_of_the_user_on_cloudmqtt #A full description of the configuration file is at I'm using mosquitto 1.4.5, nf file like this: #Place your local configuration in /etc/mosquitto/conf.d/ I considered using some IOT platform to do this, but I have read that platform like that use pricing, I'm doing this for learning and hobbie purposes, so before I learn how to use it I would like to stay on free account. Does anybody knows some remote broker that can be bridged to local mosquitto and did somebody already tried that? In case of cloudmqtt I've been told that everything is ok with nf file and for dioty I've been told that it uses Mosca broker which doesn't support bridging (with I've been told I refer to cloudmqtt and dioty support service). I tried with Cloudmqtt and dioty, but with no success. I'm trying to bridge local mosquitto (on raspberry pi) to some cloud broker so I can send data and control some devices using that data. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |