1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
con risposta un anno fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa