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

posta un anno fa736 visualizzazioni
2 Risposte
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
con risposta un anno fa
  • 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
ESPERTO
Greg_B
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande