1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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 hace un año
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace un año