Can not authenticate MQTT Client Examples

Hi,
I can not execute the sample codes for MQTT Client Examples- [url]https://cumulocity.com/guides/device-sdk/mqtt-examples/[/url]

I keep getting exception ‘Not Authorized to Connect (5)’
I’ve tried for c#, java, and browser based codes.

Nothing seems to be wrong with the authentication parameters:

  • tenand Id: beyondevren
  • [password]

However I can authenticate with same parameters using chrome MQTT Client Extension.

Does anybody know what is wrong?

Thanks in advance.

TenantId.PNG

hi, try using the tenant ID instead of the tenant name. You can get the tenant ID with the Rest API call (/tenant/loginOptions)

Hi Evren,

did you try what Fourkane suggested?

best regards
Michael