Codesys help
 
Notifications
Clear all

Codesys help  

  RSS

SaulTT
(@saultt)
New Member
Joined: 1 year ago
Posts: 2
04/10/2019 8:00 pm  

I'm working with Codesys with MQTT, it has a block for use it, but I can only put the username and password, so I think i can´t publish anything, is something I can do?

This topic was modified 1 month ago by admin

Quote
admin
(@admin)
Member Admin
Joined: 1 month ago
Posts: 4
05/10/2019 11:57 am  

I'm working with Codesys with MQTT, it has a block for use it, but I can only put the username and password, so I think i can´t publish anything, is something I can do?

There is no option to set the `clientId`?

This post was modified 1 month ago by admin

ReplyQuote
SaulTT
(@saultt)
New Member
Joined: 1 year ago
Posts: 2
07/10/2019 2:23 pm  

I'm working with Codesys with MQTT, it has a block for use it, but I can only put the username and password, so I think i can´t publish anything, is something I can do?

There is no option to set the `clientId`?

No :/

This post was modified 1 month ago by admin

ReplyQuote
Gábor AUTH
(@gabor-auth)
Active Member Moderator
Joined: 1 month ago
Posts: 10
07/10/2019 8:09 pm  

Hm... the `clientId` must be unique on the MQTT server, because of any new connection with the same `clientId` terminates the old connection based on the specification.

This uniqueness can be guaranteed by two path in our system:

  1. the `clientId` is equals with the `deviceId` and one device can establish only one connection
  2. the beginning of the `clientId` is the value of the `userId`, so that you cannot accidentally or intentionally disturb another user's connections.

If you not able to set the `clientId`, this uniqueness cannot be guaranteed... at the moment, I have no idea about the workaround.

Can you check what the Codesys client sending as `clientId`?

This post was modified 1 month ago by admin

ReplyQuote
Share: