Grafana to send mqtt messages through aws iot core

0

How can I send a message to my IOT device which is connected to AWS IOT core, through Grafana? I am already receiving data from my IOT device: IOT device ---> IOT core --->Amazon message rule-----> Amazon DataStream --->Amazon GRAFANA

How can I reverse this operation; Amazon Grafana---> IOT rule ---->send Mqtt message to IOT device

질문됨 일 년 전736회 조회
2개 답변
0

Amazon Managed Grafana is a fully managed data visualization service, and while I don't want to say it's not possible to send data from Grafana to AWS IoT devices, I think I'd like to better understand the use case.

Can you describe the outcome you're looking to achieve in this scenario? What type of message would you want to source from Grafana and send to your IoT device? Is this IoT device running FreeRTOS or AWS IoT Greengrass (or using the AWS IoT SDK)?

profile pictureAWS
답변함 일 년 전
  • I just want to send command to start and stop a motor , and to reset alarms

0

Hi.

Amazon Grafana---> IOT rule ---->send Mqtt

The rules engine would not likely be involved for downlink. More likely you would use an SDK and call the HTTP iot-data publish API. For example, with boto3: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/iot-data/client/publish.html

Amazon Managed Grafana doesn't yet support third party plugins so you, can't for example, install a button panel like this: https://grafana.com/grafana/plugins/cloudspout-button-panel/. If you would like to see this supported, please make your voice heard here: https://github.com/aws/amazon-managed-grafana-roadmap/issues. A workaround is to perhaps spin up your own Grafana in EC2 and install a button panel.

It should be possible however to use AMG to send automated messages in response to alarm conditions. If an AMG alert triggers a notification on SNS, a Lambda could be used to process the SNS message and publish back to the device.

profile pictureAWS
전문가
Greg_B
답변함 일 년 전

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

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

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