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 Answer
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
answered 4 months ago
profile picture
EXPERT
reviewed 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions