aws-iot

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

邮差的信 提交于 2019-12-06 06:52:53
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 could not find any working code. Or could someone explain how can I access AWS IoT portal from android app

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

青春壹個敷衍的年華 提交于 2019-12-06 00:16:24
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, the broker saves the message for delivery when the clients connect." However, here ( [ http://docs.aws

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

只谈情不闲聊 提交于 2019-12-05 16:28:44
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 article): When a device attempts to connect with an X.509 certificate that is not known to AWS IoT but was

What would be the AWS equivalent to Firebase Realtime Database?

一曲冷凌霜 提交于 2019-12-03 18:18:44
问题 I'm working on a new game project at the moment that will consist of a React Native front-end and a Lambda-based back-end. The app requires some real time features such as active user records, geofencing, etc. I was looking at Firebase's Realtime Database that looks like a really elegant solution for real-time data sync but I don't think AWS has anything quite like it. The 3 options I could think of for "serverless" realtime using only AWS services are: Option 1: AWS IoT Messaging over

Number of clients connected to AWS IoT MQTT topic

被刻印的时光 ゝ 提交于 2019-12-03 15:57:28
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. There is no limit to the number of devices on a single topic. One of the major pros for the service - it scales virtually infinitely.

How to use AWS IoT to send/receive messages to/from Web Browser

心不动则不痛 提交于 2019-12-03 02:18:03
问题 We are trying to use Amazon Web Services Internet of Things (AWS IoT) to send messages from/to a Web Browser (e.g: . Given that the AWS IoT supports JavaScript we expect that this is possible ... We have searched at the AWS IoT Documentation but only found server-side examples (which expose AWS secrets/keys...) Are there any good working examples or tutorials for using AWS IoT to send/receive messages via WebSockets/MQTT in the browser (e.g: authenticating with AWS Cognito) ? Thanks! 回答1:

How to use AWS IoT to send/receive messages to/from Web Browser

别等时光非礼了梦想. 提交于 2019-12-02 16:14:52
We are trying to use Amazon Web Services Internet of Things (AWS IoT) to send messages from/to a Web Browser (e.g: . Given that the AWS IoT supports JavaScript we expect that this is possible ... We have searched at the AWS IoT Documentation but only found server-side examples (which expose AWS secrets/keys...) Are there any good working examples or tutorials for using AWS IoT to send/receive messages via WebSockets/MQTT in the browser (e.g: authenticating with AWS Cognito) ? Thanks! Kyle Roche Here's a sample that uses a cognito identity pool in JS to connect, publish and react to a

aws iot describe-endpoint::You must specify a region

怎甘沉沦 提交于 2019-12-02 01:09:37
I am following this tutorial for connecting Raspberry Pi to AWS IoT using Node.js SDK and I have done all the other steps but I am lost in the authentication and certificate step: pi@raspberrypi:~ $ aws iot describe-endpoint You must specify a region. You can also configure your region by running "aws configure". pi@raspberrypi:~ $ aws configure AWS Access Key ID [None]: AWS Secret Access Key [None]: Default region name [None]: Default output format [None]: pi@raspberrypi:~ $ ls 2016-02-24-204612_1920x1080_scrot.png Desktop get-pip.py node_modules python_games sources WiringPi aws device.cfg

SIM 800 GPRS modem for HTTP GET and POST to AWS IoT and AWS API gateway

爷,独闯天下 提交于 2019-12-01 11:23:18
问题 I was trying to POST and GET some JSON data to and from the AWS cloud respectively using the SIM 800 module. I'm initially trying it out directly from my PC over a terminal UART software and inputting AT commands in manually. HTTP GET is working fine over SSL ( AT+HTTPSSL=1 ) for websites like Google and Quora, as in, they return back <html> data. 1) I looked into first going through the AWS IoT route using HTTP as mentioned in the link here. But it requires not only a single certificate for

AWS IoT Android application over MQTT throws MqttException (0) - java.io.IOException: Already connected

让人想犯罪 __ 提交于 2019-12-01 06:56:24
I am trying to use 'Authenticate using Cognito-Identity with Cognito user pool' in my Android application. My Cognito user pool authentication works well, when I run that separately and I had seen a JWTToken as well. When I run the the 'PubSub' sample application with Unauthenticated role, it worked as expected. When I integrate these two features in one application, the application threw following error. W/System.err: MqttException (0) - java.io.IOException: Already connected W/System.err: at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:38)