MQTT over Websocket Monitor
Single page application MQTT over Websocket monitor.
Required libraries get from CDN, It works only the .html
and Internet connection.
.html
Describe of awsiot.html
: For AWS IoT. Support Pub/Sub using Amazon Cognito. (NOT using accessKey of IAM account)- In Amazon Cognito
- Create IdentityPool
- Get IdentityPoolId of UnAuth
- In AWS IAM
- Attach AWSIoTDataAccess policy to Role of UnAuth
- In Application
- Set IdentityPoolId to CognitoIdentityPoolId for AWS IoT and Connect
- Let's Pub/Sub!!
- In Amazon Cognito
wss.html
: For MQTT over WebSocket.
OneLiner WebServer
.html
does not work in file:///
. You need web server, but a little bit ime-consuming.
Try $ python -m SimpleHTTPServer
if you have python2.7.
License
MIT
EoT