aws-iot

How to implement AWS IoT(device) in React-Native?

孤街浪徒 提交于 2019-11-30 15:05:46
问题 I am trying to Implement AWS-IoT(device) using React-Native. I have used the packages, 1) aws-iot-device-sdk-js 2) react-native-aws-iot-device-shadows and got a lot of errors while using the package. I could debug few, but did not get expected results. I am Implementing AWS-IoT for Chatting application. I am successfully creating an IoT session using REST APIs and get these as responses iotEndpoint, region, accessKey, secretKey, sessionToken . But using these credentials I am unable to

How to implement AWS IoT(device) in React-Native?

微笑、不失礼 提交于 2019-11-30 12:55:29
I am trying to Implement AWS-IoT(device) using React-Native. I have used the packages, 1) aws-iot-device-sdk-js 2) react-native-aws-iot-device-shadows and got a lot of errors while using the package. I could debug few, but did not get expected results. I am Implementing AWS-IoT for Chatting application. I am successfully creating an IoT session using REST APIs and get these as responses iotEndpoint, region, accessKey, secretKey, sessionToken . But using these credentials I am unable to Connect using the above packages. I figured this out, Step 1: Install aws-iot npm package npm install --save

What would be the AWS equivalent to Firebase Realtime Database?

☆樱花仙子☆ 提交于 2019-11-29 19:04:51
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 WebSockets This one is quite obvious, a managed WebSockets connection through the IoT SDK. I was thinking of

connect to AWS IoT using web socket with Cognito authenticated users

亡梦爱人 提交于 2019-11-26 22:44:08
问题 I'm trying to connect to AWS IoT using web socket from the browser. I've tried this example: https://github.com/awslabs/aws-iot-examples/tree/master/mqttSample And another one a little bit modfied so it can be used with Cognito Identity pool logged users. https://github.com/dwyl/learn-aws-iot/blob/master/src/js/utils/request.js#L27 I can successfully connect if I use a IAM user with a valid IoT policy, but if I use the user credentials, I receive a "101 Switching Protocols" response but then