Nobody Publish Monsters

    phidget22
    TypeScript icon, indicating that this package has built-in type declarations

    3.12.1 • Public • Published

    Phidget22 JavaScript Library

    npm Licence MIT

    Official Phidget22 JavaScript library.

    This library includes both Node.js and browser support.

    Phidgets are accessed over the network via the Phidget Network Server.

    Newer Phidgets can also be opened directly over USB, allowing for no-install access within the Browser or Node.js.

    A smaller network only library is also available: phidget22-net

    Start by reading the Phidgets JavaScript Language Page.

    Resources

    Prerequisites

    USB Access in Node.js requires installation of the optional usb dependency.

    USB Access in the Browser requires a browser that supports WebUSB

    Node.js

    npm install phidget22

    ES6 module import:

    import * as phidget22 from 'phidget22';

    CommonJS import:

    const phidget22 = require('phidget22');

    Browser

    Download the latest release here.

    The release contains full, net, and usb versions of the library, in both UMD and ES module format.

    UMD import:

    <script src="phidget22.min.js"></script>

    ES6 module import:

    <script type="module">
    	import * as phidget22 from './phidget22.esm.js';
    </script>

    You can also load the library directly from UNPKG:

    <script src="https://unpkg.com/phidget22@^3.10/browser/phidget22.min.js"></script>

    App bundlers such as Webpack are supported with browser-specific files in the npm.

    Changelog

    3.12.1 - September 12 2022

    • Support 1014_3, 1017_2
    • Support 1048_1, 1048_2 on USBConnection

    3.11.1 - August 22 2022

    • Support MOT0110_0
    • Add option to network connect() to retry on initial failure

    3.10.5 - July 28 2022

    • Fixes a bug where a network connection reconnect can be cancelled immediately and no further attempts are made

    3.10.4 - June 21 2022

    • Fixes a bug in the network connection maintainer to ensure that only one connection request is active at a time

    3.10.3 - May 5 2022

    • Removed some superfluous log messages

    3.10.2 - May 5 2022

    • Node.js USB bugfixes
    • Fix issue where a channel could end up with 2 simultaneous open requests internally
    • Add client-side keepalives to network connection

    3.10.1 - April 13 2022

    • Initial v3 release

    Keywords

    none

    Install

    npm i phidget22

    DownloadsWeekly Downloads

    223

    Version

    3.12.1

    License

    ISC

    Unpacked Size

    8.2 MB

    Total Files

    8

    Last publish

    Collaborators

    • phidgetsinc