0.1.1 • Published 11 months ago

@w3bstream/sdk v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Installation

$ pnpm i @w3bstream/sdk

Usage

// libs/w3bstream.ts
import { Device } from '../libs/w3bstream.ts';

// new device
export const device = new Device({
  projectName: '<PROJECT_NAME>',
  w3bstreamEndpoint: 'https://devnet-staging.w3bstream.com/',
  deviceToken: '<DEVICE_TOKEN>',
});
// client.ts

const data = {
  latitude: '295661300',
  longitude: '1064685700',
  random: '78430',
  snr: 1024,
};

// send event
device.sendEvent({
  payload: data,
});

Building

Run nx build sdk to build the library.

Running unit tests

Run nx test sdk to execute the unit tests via Jest.

0.1.0

11 months ago

0.1.1

11 months ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago