# iotes-strategy-phidget22

> Iotes intergration for phidget 22

Latest version **0.1.14** (published 2020-04-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install iotes-strategy-phidget22
pnpm add iotes-strategy-phidget22
yarn add iotes-strategy-phidget22
bun add iotes-strategy-phidget22
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.14 |
| Published | 2020-04-22 |
| First published | 2020-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Seamus Foley |
| Maintainers | fast-boy |

## Links

- npm: https://www.npmjs.com/package/iotes-strategy-phidget22
- npm.io page: https://npm.io/package/iotes-strategy-phidget22

## Dependencies (2)

- [iotes](https://npm.io/package/iotes.md) ^0.1.31
- [phidget22](https://npm.io/package/phidget22.md) ^2.6.2

## Recent versions

- 0.1.14 (latest) — 2020-04-22
- 0.1.13 — 2020-04-22
- 0.1.12 — 2020-04-20
- 0.1.11 — 2020-04-14
- 0.1.10 — 2020-04-14
- 0.1.9 — 2020-04-14
- 0.1.8 — 2020-04-14
- 0.1.5 — 2020-04-12
- 0.1.4 — 2020-04-08
- 0.1.3 — 2020-04-08
- 0.1.2 — 2020-03-30
- 0.1.1 — 2020-03-30
- 0.0.2 — 2020-03-30

## README

# `iotes-strategy-phidget22`

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

## Usage

```typescript
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

---
_Source: https://npm.io/package/iotes-strategy-phidget22 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
