# Yonomi ThinCloud v2 Node SDK

## Getting Started

1. Clone this repository.
2. Run `npm i` to install all dependencies.
3. Run `npm run build`

## Testing

1. To test, run `npm run test`


## Running the test device locally

1. In root directory, run `npm link`
2. `cd example`
3. Run `npm i`
3. Run `npm link thincloud-v2-node-sdk`
4. Add environmental variables for `IOT_HOST`, `IOT_PORT`, and `CLIENT_ID`
5. Follow the ThinCloud docs to create a rootCA and device certificates. Add them to a `certs` folder.
6. Run `npm start`