IOT core clientID

0

Hi

Every time, a device connects to the IOT core a different clientID (i.e. assignedClientIdentifier) is given. Unlike firebase, there is no token given. So, can clientID value be fixed irrespective of repeated connect/disconnect to IOT core and issue a JWT token for that device during every connect/re-connect?

Thanks Suresh

Suresh
asked a month ago64 views
1 Answer
0

Hi,

I assume that you are using the AWS IoT Device SDK for Javascript v2 and using the custom authorizer approach. You can override the randomly assigned clientId (see here for more details--not the same ask but gives more context on the client build process) by setting the clientId value as such:

// ...
builder.withConnectProperties({ keepAliveIntervalSeconds: 120, clientId: "someValue" });
// ...

What does your client builder look like today?

AWS
Gavin_A
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions