How can I use the AWS IoT Core API to display data on a web page?

0

Here are the challenges that we faced.

We have listed the IoT APIs that we need in our web application. All the API requests worked in Postman. We are building a website to display all the things connected to our cloud account.

Currently, we need help to sign AWS Signature version 4 requests. We were unable to display the list of things on our web page using JavaScript. There is a signature mismatch error that prevents us to retrieve the data. Can somebody help us with sample program codes that work?

1 Risposta
2

Hi there, signing of requests using Sig V4 is automatically done by the AWS SDK so you do not have to do this manually. The Javascript SDK is available here and here's some sample code using the SDK to call the list things endpoint. The full API documentation for the SDK is also available here if you need other APIs as well.

Hope this helps!

AWS
Isaac
con risposta 4 mesi fa
profile picture
ESPERTO
verificato 4 mesi 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