npm.io
0.1.14 • Published 6 years ago

iotes-strategy-phidget22

Licence
MIT
Version
0.1.14
Deps
2
Size
17 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

iotes-strategy-phidget22

An iotes strategy to integrate with phidget devices. Currently only supports some functions of Encoder and RFID reader

Usage

import { phidgetStrategy } from 'iotes-strategy-phidget22'
// You may use this with any iotes plugin, 
import { createIotes } from 'iotes'

createIotes(topology, phdgetStrategy)

Testing

You can run manual tests with npm run test and phidget attached

Adding Devices to strategy,

  1. Add Device type to DeviceTypes in ./types
  2. create a new file in ./devices
  3. import Device from type
  4. Create the function to create the device factory copying the examples provided
  5. Import the new device factory factory into ./createDeviceFactory
  6. Export the function with the type name you added to DeviceTypes in step 1