Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » mqtt question, help pls(mqtt question)
mqtt question, help pls [message #1842091] Wed, 09 June 2021 03:11 Go to next message
overmas zhang is currently offline overmas zhangFriend
Messages: 12
Registered: June 2021
Junior Member
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 153 times)
Re: mqtt question, help pls [message #1842094 is a reply to message #1842091] Wed, 09 June 2021 03:40 Go to previous messageGo to next message
overmas zhang is currently offline overmas zhangFriend
Messages: 12
Registered: June 2021
Junior Member
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 09:49 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

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 10:22 Go to previous message
Martin Melik Merkumians is currently offline Martin Melik MerkumiansFriend
Messages: 117
Registered: March 2016
Senior Member
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: Sun Apr 28 00:15:28 GMT 2024

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

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

Back to the top