https://github.com/pwntus/mcu-server
https://github.com/pwntus/mcu-server
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pwntus/mcu-server
- Owner: Pwntus
- Created: 2017-02-21T22:20:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-27T18:42:01.000Z (over 8 years ago)
- Last Synced: 2025-03-29T04:47:10.102Z (3 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MQTT client with Cloud Connect cognito authentication
Demonstration on how to use the `cloud-connect` Node.js module to authenticate with Cognito identity.
## Install local cloud-connect NPM module
```
$ cd cloud-connect
/cloud-connect$ npm link && cd ..
$ npm link cloud-connect
$ npm install
```### Run cloud-connect with Cognito identity
```
$ node lib/cognito.js -u -P -v -a 064445364562 -e prod -s '' -p ''
```#### MQTT topic format
`pub///`
`sub///`
E.g.
`sub/UIT IFI course/pau001/00000273`
**N.B.** Replace dash `-` with whitespace.