These work fine on the device side, but I want to monitor this streaming activity from the server side — or at least view the MQTT traffic using the MQTT test client on AWS IoT Core.
My Questions:
Can I subscribe to these topics from the server, either using:
AWS IoT Core > Test > MQTT test client?
Is there any restriction on viewing these reserved stream topics from clients that are not the originating device?
Has anyone implemented server-side monitoring or logging of these streams/... topics?
Any example or workaround to debug MQTT stream traffic in real time?
As described here, you should be able to subscribe to these topics.
What do you mean by “server” here? Do you mean to have another MQTT client, potentially running on a PC, and subscribe to stream topics. If so, I think you should be able to do so.
Another thing worth confirming is that you are using the MQTT Test Client of the same region as the endpoint your device is connecting to. There are a couple of ways to check this:
The region name shown on top right of the AWS console should match the region name in the endpoint e.g. xxxxxxxxxxxx[.]iot[.]ap-south-1[.]amazonaws[.]com is the end point for the ap-south-1 region.
You can subscribe to $aws/events/presence/connected/# using the MQTT Test Client and connect your device to the broker. If the region is the same the test client will show a new connection at this topic.