Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pwntus/mcu-server


https://github.com/pwntus/mcu-server

Last synced: 5 days ago
JSON representation

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.