Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name of the client #1

Open
albertopicca opened this issue Aug 18, 2015 · 3 comments
Open

Name of the client #1

albertopicca opened this issue Aug 18, 2015 · 3 comments
Assignees

Comments

@albertopicca
Copy link

How to change the name of the clientId that publish the topic?
It's always "PLC"

Thank

@fieldfoxWim
Copy link
Contributor

IN the MQTT_Client there is the following line (ln 108):

_BUFFER_PUSH_STRING(ADR(payload), 'PLC', TRUE); (* Client Identfier *)

Where you can edt the client id.

I did not make the value of the clientId conffigurable, I will change that.

@albertopicca
Copy link
Author

Thank you for reply.

I've open the project mqtt.pro, but when I try to compile I receive the build errors:


Error 4001: UDP_SndRcv(44): Identifier SYSSOCKRECVFROM' not defined
Error 4263: UDP_SndRcv(44): Expected Number 'ELSE' or 'END_CASE'
Error 4001: UDP_SndRcv(70): Identifier SYSSOCKRECVTO' not defined
...
...


I suppose the library WagoLibEthernet_01.lib*1.4.15 14:24:28 will not be valid,
and I use the codesys 2.3.9.47.

I try to add the new input variables sClientId...

Thank you!

@fieldfoxWim
Copy link
Contributor

I use WagoLibEthernet_01.lib*26.3.10 14:18:53

But 18.8.15 should also work, you can download it here: http://www.wago.com/wagoweb/documentation/app_note/libraries/WagoLibEthernet_01.lib

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants