Linuxdept (Customer) asked a question.March 31, 2021 at 1:10 PMMQTT Click ExamplesIs there examples anywhere of using MQTT in the click plus..i know AD Does but it Doesn't show the ladder Expand PostClick
Garry (Customer)5 years agoI plan on doing a video (example) on using the MQTT protocol on the click.Regards,Garry https://accautomation.ca/series/click-plc/Expand Post
ADC Community_02 (Automationdirect.com)5 years agoMQTT doesn't require ladder for it to function. Are you looking for any specific example(s)?Expand Post
Linuxdept (Customer)5 years agoMQTT will be turning on outputs Y0 - Y8 1 Topic per output Expand Post
ADC Community_02 (Automationdirect.com)5 years ago@Linuxdept (Customer) Put together example (see attached) of Click using MQTT publish and subscribe to HiveMQ broker. Note: Specific instructions are in the header and rung comments. Expand PostZipMQTT_Example_C1C2_to_Y1Y29KB
kewakl (Customer)5 years agoI am not up to speed on MQTT, so....In your example you state "This example both Publishes and Subscribes to the two topics:CLICK/Data1CLICK/Data2" Could another CLICK be the target? Meaning could one CLICK be the actual project and another CLICK be the target, instead of the http: site?Expand Post
Garry (Customer)5 years agoHi kewakl,The MQTT network would require a broker. Then all of the clicks could publish and subscribe.This network would not have direct client-to-client communication.This post may help explain better.https://accautomation.ca/brx-do-more-simulator-mqtt-publish-subscribe/Regards,Garry Expand Post
kewakl (Customer)5 years agoThanks Garry. That answers my question.I will have to read/watch your MQTT post content. I was wanting to keep my hardware away from the internet. mosquitto.org has some broker downloads.http://mosquitto.org/download/Expand Post
Linuxdept (Customer)5 years agoKewakl, only if your pub/sub from a online broker would you be on the internet , otherwise use a raspberry PI on your Local network as the Broker. Expand Post
Garry (Customer)5 years agoA windows-based broker called Mosquitto can also be used without the internet.https://accautomation.ca/brx-do-more-plc-mqtt-communications/The above is a post showing the installation of this broker with the BRX.Regards,GarryExpand Post
kewakl (Customer)5 years agoYeah, as I mentioned above, I will have to delve into your post's contents.I do not have the time right now.Expand Post
I plan on doing a video (example) on using the MQTT protocol on the click.
Regards,
Garry
https://accautomation.ca/series/click-plc/
MQTT doesn't require ladder for it to function.
Are you looking for any specific example(s)?
MQTT will be turning on outputs Y0 - Y8 1 Topic per output
@Linuxdept (Customer) Put together example (see attached) of Click using MQTT publish and subscribe to HiveMQ broker.
Note: Specific instructions are in the header and rung comments.
MQTT_Example_C1C2_to_Y1Y2
I am not up to speed on MQTT, so....
In your example you state
"This example both Publishes and Subscribes to the two topics:
CLICK/Data1
CLICK/Data2"
Could another CLICK be the target? Meaning could one CLICK be the actual project and another CLICK be the target, instead of the http: site?
Hi kewakl,
The MQTT network would require a broker. Then all of the clicks could publish and subscribe.
This post may help explain better.
https://accautomation.ca/brx-do-more-simulator-mqtt-publish-subscribe/
Regards,
Garry
Thanks Garry. That answers my question.
I will have to read/watch your MQTT post content.
I was wanting to keep my hardware away from the internet.
mosquitto.org has some broker downloads.
http://mosquitto.org/download/
Kewakl, only if your pub/sub from a online broker would you be on the internet , otherwise use a raspberry PI on your Local network as the Broker.
A windows-based broker called Mosquitto can also be used without the internet.
https://accautomation.ca/brx-do-more-plc-mqtt-communications/
The above is a post showing the installation of this broker with the BRX.
Regards,
Garry
Yeah, as I mentioned above, I will have to delve into your post's contents.
I do not have the time right now.