1 Answer
- Newest
- Most votes
- Most comments
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
answered 25 days ago
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
Solution: SELECT position_latitude, position_longitude FROM 'myTopic'.
change . to _