1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
0
You can use the nested object queries to get the values. https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-nested-queries.html
In your example , use the below messaging routing rule to get the value of "id" and "val".
SELECT get(payload.vals,0).val AS VAL FROM 'TestRule'
SELECT get(payload.vals,0).id AS ID FROM 'TestRule'
I used "TestRule" as source generating the data.
respondido há um ano
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 3 anos