1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
You can use
SELECT get(*,"position.latitude") as latitude ,get(*,"position.longitude") as longitude FROM 'testTopic'
to extract the data. The output will be like
{
"latitude": 49.692065,
"longitude": 20.497348
}
ref: https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-json.html
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
Solution: SELECT position_latitude, position_longitude FROM 'myTopic'.
change . to _