Questions tagged [aws-iot]

AWS IoT is Amazon's implementation of an IoT gateway.

AWS IoT is a managed cloud platform that lets connected devices easily and securely interact with cloud applications and other devices. It works as a gateway for your devices (things) to communicate with any of the AWS services. AWS IoT can support billions of devices and trillions of messages, and can process and route those messages to AWS endpoints and to other devices reliably and securely.

Resources:

1216 questions
6
votes
1 answer

How to use aws-iot-device-sdk with react-native

I have tested aws-iot-device-sdk as shown on the image below. On my console I get topics from aws IoT. My question is when I try to integrate it into my react native application. below is my package.json for my react-native application When i…
Sithelo Ngwenya
  • 501
  • 2
  • 10
  • 28
6
votes
2 answers

Publish mqtt message to topic from aws lambda using aws iot

I need to publish data from aws lambda through mqtt protocol using aws iot. i have created a lambda function with node.js code. like this exports.handler = (event, context, callback) => { var awsIot = require('aws-iot-device-sdk'); var…
Abdul Manaf
  • 4,933
  • 8
  • 51
  • 95
6
votes
2 answers

How do I use an authenticated AWS Cognito identity to access an AWS IoT endpoint?

I am using an MQTT client in JavaScript (paho-mqtt-js) to connect to an AWS IoT endpoint and I am able to connect if I use my own AWS credentials. However, if I use credentials generated by Cognito for a logged in user I am unable to do so. My…
dillib
  • 359
  • 1
  • 2
  • 11
5
votes
1 answer

ESP32 - MQTT to AWS IoT using MicroPython

I have registered my ESP32 as a thing on AWS IoT and downloaded its respective certificate and public & private keys. Also verified that those connect properly via the following command in my terminal: openssl s_client -connect…
zegulas
  • 417
  • 2
  • 6
  • 18
5
votes
0 answers

AWS IoT - Failed to invoke lambda function

I'm trying to get my IoT device to fire off a Lambda function. Been trying for a few hours to no avail. My lambda function is simple: exports.handler = async (event) => { // TODO implement const response = { statusCode: 200, …
hugo
  • 1,175
  • 1
  • 11
  • 25
5
votes
0 answers

AWS IOT - aws-iot-device-sdk mqtt premature close

Have a Cordova application that is attempt to transmit some data to AWS-IOT. I'm using the aws-iot-device-sdk for javascript https://docs.aws.amazon.com/iot/latest/developerguide/iot-sdks.html#iot-javascript-sdk The data being sent is simple JSON. …
tronious
  • 1,547
  • 2
  • 28
  • 45
5
votes
0 answers

Not able to connect to Aws Iot using AWSIotMqttManager and Aws Cognito credentials

I am using AWS Cognito for sign in and to get temporary credentials. I tried PubSub API in Ionic app in browser and it is working fine for Device shadow updates. Now I have written code in Java for android but the MqttManager keeps on…
5
votes
1 answer

AWS IoT Core connection refused with authenticated Cognito user w/ attached policy [MQTT over WSS]

There have been similar questions to this before, and I have searched plenty, although the answers I have found haven't helped me solve the problem. I am trying to connect to AWS's MQTT broker for my IoT device, I am using MQTT over Web Sockets…
5
votes
1 answer

What is the difference between aws IoT 'device' and 'thingShadow' classes?

I have an app that subscribes and publishes to topics on aws IoT. I am wondering what the difference between the two classes "device" and "thingShadow" are. This library gives examples of both and they both seem to have similar functionalities.
user7120881
5
votes
1 answer

Number of clients connected to AWS IoT MQTT topic

We developed an iOS application and configured the app to listen to all the messages published on a particular MQTT topic on AWS IoT. All I want to know is, is there a way where I can pull a list of connected devices who are listening on that topic…
kskiran
  • 106
  • 7
5
votes
1 answer

AWS IOT Struggling with getting thing shodow

I know I'm missing something basic here but I'm really stuck trying to access a thing shadow on AWS IOT's platform. I'm using the following code to create a new thing: use Aws\Iot\IotClient; $thingName = ''; $awsIoTClient = new…
jalama
  • 101
  • 5
5
votes
1 answer

Issues with Amazon IoT Rules with DynamoDB and Lambda

I am currently going through the "Quick Start" tutorial for Amazon IoT and I have gotten to the point where I am configuring my rules and test rules. I can see my rules in my aws console under Amazon IoT, along with my thing, cert, and policy. I am…
4
votes
1 answer

Rust on ESP32 - How to send (and receive) data using the MQTT protocol to AWS IoT (Core)?

First off: I know running Rust on an ESP32 isn't a very common practice yet, and some (quite a bit of) trouble is to be expected. But I seem to have hit a roadblock. What works: flashing and running the code on an ESP32 passing along the…
Nico V
  • 107
  • 1
  • 9
4
votes
3 answers

failed to satisfy constraint: Member must satisfy regular expression pattern: [\w+=,.@-]+

I am trying to apply a policy for an identity pool in AWS. I am using awc-cli to set up the policy but it constantly gives me this exception from the title: An error occurred (InvalidRequestException) when calling the AttachPrincipalPolicy…
4
votes
1 answer

AWS Greengrass connect docker container with MQTT broker

Working on a edge case with AWS greengrass we plan to run multiple docker container on the device which shall communicate with each other using MQTT. So far we managed to install and connect greengrass, deploy container and use the interprocess…
1 2
3
80 81