MQTT Client in PLCnext engineering
Hello everyone,
I am reaching out to use MQTT_Client, which is available in plcnext market.
Currently, I am utilizing the PLCnext Starter Kit 1188165 for my project in Hengst company in NRW/Germany. My objective is to utilize the MQTT protocol to publish data to the cloud service known as measx. To achieve this, I have referenced the example files provided, which include programs for HiveMQ, AZUR, and AWS. For my specific application, I opted to focus solely on the HiveMQ program and deleted the other two. (tho i wanna use it to upload data to another cloud cloud called Measx)
After configuring the main connecting block with the necessary access credentials such as URL, username, and topic, I encountered an issue during the compilation process. Initially, I was able to successfully send only one single signal and observe the message on the measx cloud. However, after approximately one or two second, the xError part of the block transitioned to TRUE, accompanied by the 16#0006 Error code in wErrorCode, resulting in a loss of connection to the cloud.
In an attempt to troubleshoot, I explored an alternative approach by establishing a connection between the PLC and a Raspberry Pi acting as a broker (equipments are PLC, Raspberry pi, one Switch and a Router as subnet, and i gave them the sup IPs manually). With the Raspberry Pi connected to the cloud service and both devices configured within the same subnet, I achieved successful data transmission from the PLC to the Raspberry Pi (with MQTT Client) , which subsequently uploaded the data to the cloud with a python code. While this indirect method proved functional, it is not the desired solution for us to use the Raspberry in the mittle and on the other hand i still have problem for a direct connection between PLCnext and cloud.
After numerous attempts, I have been unable to establish a direct and stable connection to the cloud service (measx) without the intervention of the Raspberry Pi. Any insights or recommendations you can provide would be greatly appreciated, as I am eager to overcome this obstacle and progress with my project.
Do you have any idea what should i do, to solve this issue?
i also write down my Email address for contact:
Warm regards
Comments
I understand that this issue was resolved with the help of your local Phoenix Contact office.
For other users, the resolution was listed as:
"The firmware versions in the project did not match those of the controller."