IoT Rule SQL error for reserved topic

0

I'm happy to see that AWS added the connection status of devices & LoRa gateways.
I was excited to use a rule to process those messages downstream, but can't figure out how.

The connect/disconnect events are published here: $aws/iotwireless/events/connection_status/+/lorawan/wireless_gateways

But when making the rule the following query: SELECT * FROM $aws/iotwireless/events/connection_status/+/lorawan/wireless_gateways

Throws an error:

SqlParseException
Unexpected character '$' $aws/iotwireless/events/connection_status/+/lorawan/wireless_gateways --------------^ at 1:15

Please tell me that this is possible and I'm just not understanding...

已提問 2 年前檢視次數 322 次
1 個回答
0

Whoops, my mistake. Looks like I had a simple formatting issue. Forgot the quotes... Should have been.

SELECT * 
FROM '$aws/iotwireless/events/connection_status/+/lorawan/wireless_gateways'
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南