Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » mqtt question, help pls(mqtt question)
mqtt question, help pls [message #1842091] Tue, 08 June 2021 23:11 Go to next message
Eclipse UserFriend
when i use mqtt in 4diac, if just use one subscribe or one publish, that's ok. but if i use both subscribe and publish at the same time, one of them will return INVALID_ID.

is there anything wrong for paho mqtt config?

thx a lot!
index.php/fa/40595/0/
  • Attachment: error.jpg
    (Size: 279.45KB, Downloaded 194 times)
Re: mqtt question, help pls [message #1842094 is a reply to message #1842091] Tue, 08 June 2021 23:40 Go to previous messageGo to next message
Eclipse UserFriend
oh, how silly am I. Watch the code and understand that all FBs need use the same clientID....
Re: mqtt question, help pls [message #1842100 is a reply to message #1842094] Wed, 09 June 2021 05:49 Go to previous messageGo to next message
Eclipse UserFriend
Just wanted to write that. Unfortunately you have to give in all places the same clientedID and also the same broker address. We haven't found a better solution yet.
Re: mqtt question, help pls [message #1842102 is a reply to message #1842094] Wed, 09 June 2021 06:22 Go to previous message
Eclipse UserFriend
Correct, at least for all blocks which will run on the same device
Previous Topic:how to send msg by tcp? help pls
Next Topic:question about opc_ua -- how can i get client_0_1 and client_1_0 FBs
Goto Forum:
  


Current Time: Wed Jul 30 16:06:03 EDT 2025

Powered by FUDForum. Page generated in 0.04641 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top