Hi all,
We use a couple off devices with ESP Easy to send sensor data thru MQTT to our local broker.
This all works great, but we now want to send some mqtt data to IBM Watson broker.
This requires a verry specific ClientId, username, password for connected devices.
Is it possible to manually set the ClientId for connecting to a mqtt broker?
thanks
Change ClientId for MQTT
Moderators: grovkillen, Stuntteam, TD-er
Re: Change ClientId for MQTT
That's not yet possible.
What format (and more important, what size) should your clientID be?
What format (and more important, what size) should your clientID be?
Re: Change ClientId for MQTT
thats to bad, i read a feature request for a option to be able to set the MQTT clientid as the device id.
that would be great.
But to answer your question, IBM Watson requiers a clientID for clients publishing data, in the format :
d:orgId:deviceType:deviceId
so for example
d:3m11xb:sensors:temp078
that would be great.
But to answer your question, IBM Watson requiers a clientID for clients publishing data, in the format :
d:orgId:deviceType:deviceId
so for example
d:3m11xb:sensors:temp078
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Change ClientId for MQTT
Would it be one ID per unit? If so it would be possible to create a static ID based on a manually input string.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Change ClientId for MQTT
Yes,
Its one unique ID per device which doesn't change.
Its one unique ID per device which doesn't change.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Change ClientId for MQTT
And with "device" you mean "unit"?
We use device for sensors and actuators.

We use device for sensors and actuators.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Who is online
Users browsing this forum: No registered users and 11 guests