I am using AWS IoT for real-time updating for my web application, applications connect to AWS IoT using SDK.
here is my piece of code:
const client = awsIot.device({
region: awsConfig.region,
protocol: 'wss',
accessKeyId: <accessKey>,
secretKey: <secretKey>,
sessionToken: <sessionToken>,
port: 443,
host: <iotEndpoint>
});
client.on('connect', res => {
// ok
});
How can I get an MQTT client id?