Number of Clients Connected to AWS IoT MQTT Topic

We developed the iOS app and set up the app to listen to all messages posted in a specific MQTT topic on AWS IoT.

All I want to know is there a way I can pull out a list of connected devices that are listening to this topic? (I checked the cloudWatch logs, and I could not find detailed information such as the MAC address of the connected device, etc.).

In addition, I want to know if there is a limit to no. devices that can be subscribed to a topic.

+4
source share
1 answer

. - . AWS IoT Limits.

, AWS IoT. , - , AWS - , :

$aws/events/subscriptions/subscribed/{clientId}
$aws/events/subscriptions/unsubscribed/{clientId}

IoT S3, DynamoDB RDS . DynamoDB . ( DynamoDB)

- / :

{
    "clientId": "186b5",
    "timestamp": 1460065214626,
    "eventType": "subscribed" | "unsubscribed",
    "sessionIdentifier": "00000000-0000-0000-0000-000000000000",
    "principalIdentifier": "000000000000/ABCDEFGHIJKLMNOPQRSTU:some-user/ABCDEFGHIJKLMNOPQRSTU:some-user"
    "topics" : \["foo/bar","device/data","dog/cat"\]
}
0

Source: https://habr.com/ru/post/1651339/


All Articles