iotdb-transport-memory

3.0.5 • Public • Published

iotdb-transport-memory

IOTDB Transporter for in-memory

About

This Transporter works "in-memory" and probably is best used for testing more than anything practicle.

Use

See the samples folder for working examples

Basic

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

const memory_transport = require("iotdb-transport-memory");
const memory_transporter = memory_transport.make();

memory_transport.put({
    id: "light",
    band: "ostate",
    value: { on: true }
}).subscribe()

Bound

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

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

const memory_transport = require("iotdb-transport-memory");
const memory_transporter = memory_transport.make();

## all changes to iotdb_transporter go to memory_transport
memory_transporter.monitor(iotdb_transporter)

## all changes to memory_transport go to iotdb
iotdb_transporter.monitor(memory_transporter)

Readme

Keywords

none

Package Sidebar

Install

npm i iotdb-transport-memory

Homepage

homestar.io

Weekly Downloads

0

Version

3.0.5

License

Apache-2.0

Last publish

Collaborators

  • dpjanes