Skip to content
Advertisement

Can * be used for partial topics in AWS’ IoT Rule syntax?

Is this allowed as AWS’ IoT Rule syntax?:

SELECT * FROM '$aws/things/truck*/shadow/update/accepted' WHERE state.reported.truck_type <> "pickup"

Advertisement

Answer

No, you cannot use a * to achieve this, since you must pass a valid topic filter.

According to the documentation you are able to use a + sign to achieve this effect.

Quoted from the documentation linked above:

A subscription to sensor/+/room1 receives messages published to sensor/temperature/room1 and sensor/humidity/room1, but not messages sent to sensor/temperature/room2 or sensor/humidity/room2.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement