Thank you, I originally tried to do this and I keep getting an error showing the Allocated Payload size has been exceeded.
Thank you, I originally tried to do this and I keep getting an error showing the Allocated Payload size has been exceeded.
Hello, I am working on a MQTT program but need some help with a function block. I have the Client block connected to the broker with the Topics communicating but i can't figure out how to publish or subscribe. I am not sure what to put in to the pbPayload? I am expecting a string value but it looks like it is a Pointer_TO_Byte?? I am still pretty new with Codesys and haven't used this data type before.
Hello, I am working on a MQTT program but need some help with a function block. I have the Client block connected to the broker with the Topics communicating but i can't figure out how to publish or subscribe. I am not sure what to put in to the pbPayload? I am expecting a string value but it looks like it is a Pointer_TO_Byte?? I am still pretty new with Codesys and haven't used this data type before.