Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IoT WebSockets in Web Browser with Cognito #9

Open
nelsonic opened this issue Feb 16, 2016 · 11 comments
Open

IoT WebSockets in Web Browser with Cognito #9

nelsonic opened this issue Feb 16, 2016 · 11 comments

Comments

@nelsonic
Copy link
Member

Original text for StackOverflow Question:


Does anyone know of any good working examples or tutorials for using AWS IoT as a websocket connection in the browser with AWS Cognito? I've been looking at the AWS IoT Documentation but I've only been able to find server-side examples. If anyone has any experience with this or knows of any good resources please let me know!


Re-written as:

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

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!


Possible answer: https://medium.com/@jparreira/receiving-aws-iot-messages-in-your-browser-using-websockets-9b87f28c2357#

@nelsonic
Copy link
Member Author

In the tweet asking for help we should cc:

@jeffbarr @taraw @ianmmmm @amichelu

e.g:


Trying to connect to @AWScloud #AWS #IoT from Browser. stuck #Question: http://stackoverflow.com/questions/35439742/how-to-use-aws-iot-to-send-receive-messages-to-from-web-browser @jeffbarr @taraw @ianmmmm @danilop @amichelu

@jackcarlisle
Copy link
Member

@jackcarlisle
Copy link
Member

Reply to tweet: LIght bulb example https://s3.eu-central-1.amazonaws.com/iotjam/bulb.html (inspect the source)

@nelsonic
Copy link
Member Author

This is the most complete tutorial we have found: http://dev.classmethod.jp/cloud/aws/aws-iot-mqtt-over-websocket/ access in Chrome to get auto-google-translate (its in Japanese...!) 😉

@nelsonic nelsonic changed the title IoT WebSockets with Cognito StackOverflow Question IoT WebSockets in Web Browser with Cognito Feb 17, 2016
jackcarlisle added a commit that referenced this issue Feb 17, 2016
@dandonahoe
Copy link

@nelsonic I'm trying to do this exact thing as well and have hit the same wall as you. Did you ever make any progress?

@nelsonic
Copy link
Member Author

@dandonahoe we got the IoT part working: https://github.com/dwyl/chat
the "cognito" part was a bit more effort than we had time for.
if you manage to get it all working we'd love to know how. thanks! 👍

@Tee88
Copy link

Tee88 commented Jan 26, 2018

@nelsonic any possibility of making a tutorial? 😛

@nelsonic
Copy link
Member Author

@Tee88 what specifically are you hoping to learn? 🤔

@Tee88
Copy link

Tee88 commented Jan 28, 2018

@nelsonic I have multiple IoT things that a generating time-series data. Each device is owned by a different user. Users should be able to monitor sensors readings in real time.How can achieve that using AWS IOT, WebSockets and Cognito?

@Jun711
Copy link

Jun711 commented Jul 3, 2018

@nelsonic Hi, could you share what u did on aws console to configure IoT to enable this?

I haven't used aws IoT but aws iot describe-endpoint does return an endpoint which I don't know why it is there.

@nelsonic
Copy link
Member Author

nelsonic commented Jul 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants