3.0.5 • Published 8 years ago

iotdb-transport-iotdb v3.0.5

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
8 years ago

iotdb-transport-iotdb

IOTDB Transporter for IOTDB (!)

About

Transporters are all about connecting to other Transporters, e.g. so we can make an API to all our Things. So this is kinda the "root" Transporter that actually talks to the Things using IOTDB, and you'll often be connecting other Transporters to this.

See the samples folder for working examples

Use

Basic

Don't forget your subscribes! Most Transporter methods return RX Observables.

Note that the path to the prefix will be created.

const iotdb = require("iotdb");
const iotdb_transport = require("iotdb-transport-iotdb");
const iotdb_transporter = iotdb_transport.make({{});

iotdb_transport
    .all({})
    .subscribe(
        thingd => { /* all the bands of the thing in thingd */ }
    );

Specific Things

By default, the Transporter will use iotdb.connect and connect to everything in your environment it can find. Sometimes you will just want to wrap specific things.

const iotdb = require("iotdb");
iotdb.use("homestar-wemo")

const things = iotdb.connect("WeMoSocket");

const iotdb_transport = require("iotdb-transport-iotdb");
const iotdb_transporter = iotdb_transport.make({{}, things);

// this transporter will only have WeMoSockets
3.0.5

8 years ago

3.0.4

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

0.0.22

8 years ago

0.0.21

8 years ago

0.0.20

8 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago