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.