aws-iot

AWS IoT Python SDK and asyncio

允我心安 提交于 2019-12-11 03:05:59
问题 I need to use AWS IoT MQTT service. I am doing some experimenting with https://github.com/aws/aws-iot-device-sdk-python currently. My application will be using websockets to communicate with another service, and then publish / subscribe to MQTT topics to forward / receive messages. Is it likely that this library will be blocking code execution? I still try to get my head around asyncio, and not sure what things I should be looking out for. How do I know if it will cause problems? I believe I

Forbidden Exception on accessing AWS Iot using Amazon Cognito

雨燕双飞 提交于 2019-12-11 02:10:17
问题 I am creating an android application which connects to AWS IoT using Amazon Cognito authentication. I am able to authenticate user successfully and I am able get the credentials. While updating the thing shadow using these credentials always return 403 Forbidden Exception. I have tried all my ways to troubleshoot the issue but I found no solutions. My IAM Policy is: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "iot:GetThingShadow", "iot:UpdateThingShadow", ],

Dynamically create AWS IoT topic

不想你离开。 提交于 2019-12-10 15:38:25
问题 Is it possible to create a AWS IoT topic dynamically . For example, Is it possible to set a RULE where once the message is received, It creates a topic dynamically or through lambda function. Or is it possible through AWS-SDK Any suggestion would be helpful 回答1: You don't have to explicitly "create" topics in AWS IoT (MQTT). You would simply subscribe to, or start posting to a topic and if the topic doesn't already exist the IoT service will create it automatically. 来源: https://stackoverflow

AWS IOT connection is getting closed on IPAD OS v12.1.1

痞子三分冷 提交于 2019-12-10 11:21:28
问题 When we are connecting to AWS IoT using wss protocol on ios version 12.1.1, we were able to connect to IoT successfully, but immediately we could see onError event being triggered from IoT and then the connection gets closed. It tries to reconnect again but without any luck. The error we are getting from IoT is "{IsTrusted : true}". We are not using any certificates, just using a profile access key and secret key. The same build is able to connect properly on ios 12.0.1, 12.1 IOS version:12.1

Number of clients connected to AWS IoT MQTT topic

ぃ、小莉子 提交于 2019-12-09 13:15:47
问题 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 ? (I checked the cloudWatch logs and I couldn't find the detailed info like the MAC address of the device connected etc). Also, I want to know if there is limit on the no. of devices that can be subscribed to a topic. 回答1: There is no limit to the

What happens with messages in flight when a AWS IOT device disconnects and reconnects

*爱你&永不变心* 提交于 2019-12-08 06:58:49
问题 I have one device (AKA 'thing') successfully connected to AWS IOT. This device will operate on a very unreliable telco environment using mobile networks. This means that this device will connect and reconnect frequently while my application is running. I'm aware of AWS IOT 'shadow' mechanism, but my messages need to be consumed sequentially, this means that I need all messages, not just the last state. What will happen with the messages and payload in flight during a disconnect and reconnect

AWS IoT login from android MQTT client using IAM is not working

纵饮孤独 提交于 2019-12-07 20:25:29
问题 I have been trying to connect my android application to AWS IoT portal. I have created an IAM account, which has a username and password. I have gone through the documentation but I could not see any proper guideline. I read somewhere that I can access the IoT devices through IAM/Cognito/using a certificate. Since I am an Android user I can't(I don't want to) use a device certificate. Can I use my IAM credentials to access my AWS IoT devices? I have downloaded all sample application and I

Does AWS-IOT Mqtt Broker remember subscribed clients and undelivered messages across client Connections?

半城伤御伤魂 提交于 2019-12-07 17:00:40
问题 AWS Documentation here ( [http://docs.aws.amazon.com/iot/latest/developerguide/iot-message-broker.html] ) says this :- "The message broker maintains a list of all client sessions and the subscriptions for each session. When a message is published on a topic, the broker checks for sessions with subscriptions that map to the topic. The broker then forwards the publish message to all sessions that have a currently connected client. For all matching sessions that do not have a connected client,

Creating AWS IoT “things” with policies and certificates on-the-fly

老子叫甜甜 提交于 2019-12-07 08:35:37
问题 I am using NodeJS along with AWS JS SDK and AWS IoT Device JS SDK in order to automatically create a new thing and assign certificates and policies to it once it connects to my server. I was following "Just-in-Time Registration" article in order to create, register and activate my CA certificate. As far as I can tell, the CA certificate is successfully added to AWS IoT, activated and enabled for auto-registration. What I don't understand is how is this step performed (quote from mentioned

AWS IOT connection is getting closed on IPAD OS v12.1.1

霸气de小男生 提交于 2019-12-06 10:16:19
When we are connecting to AWS IoT using wss protocol on ios version 12.1.1, we were able to connect to IoT successfully, but immediately we could see onError event being triggered from IoT and then the connection gets closed. It tries to reconnect again but without any luck. The error we are getting from IoT is "{IsTrusted : true}". We are not using any certificates, just using a profile access key and secret key. The same build is able to connect properly on ios 12.0.1, 12.1 IOS version:12.1.1(Not working version) AWS IOT SDK:2.0.0 iOS 12.1.1 introduced Apple's new Certificate Transparency