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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠