Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

keiser-echip-utilities

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keiser-echip-utilities

Keiser eChip Utilities

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Keiser eChip Utilities

Project

Utilities to assist development of applications utilizing the Keiser eChip and Keiser eChip Portal Tool.

Getting Started

You have following options to get started:

  • Download the latest release
  • Clone the repo: git clone git://github.com/KeiserCorp/Keiser.Air.eChipUtilities.git
  • Install with NPM: npm install keiser-echip-utilities

Loading

Each release includes a minified distribution version of the library which can be loaded with a module loader, or as a stand alone library. The unminified source files are also able to be loaded with tools like browserify.

Module load the library with CommonJS:

var keu = require('keiser-echip-utilities');

Including the library as a stand-alone library:

<script src="keu.min.js"></script>
var keu = window.keu;

API

The library is namespaced to allow modular loading of individual library sections as needed.

Portal Messenger

The portalMessenger library allows communication with the Keiser eChip Portal Tool.

portalMessenger.enable(onSendRequest, onReceiveRequest)

Begins communication with the Keiser eChip Portal Tool.

onGetRequest argument is a function called whenever a request to get data is made by the portal. The function should return the object to be sent in response to the portal request.

onSetRequest agrument is a function called whenever a request to send data is made by the portal. The function should receive a data object and an onSuccess function. The data object is the data received from the portal. The onSuccess function should be ran upon successful processing of the data object.

Passing a null as either argument will disable the corresponding portal capability.

var onGeRequest = function(){ return getUserData(user.id); };
var onSetRequest = function(data, onSuccess){
	saveUserData(data);
    onSuccess();
};
keu.portalMessenger.enable(onGeRequest, onSetRequest);
portalMessenger.disable()

Stops communication with the Keiser eChip Portal Tool. Communication can not be resumed after a disable call until a new connection request is made by the portal.

Machine

machine.getMachineDetails(modelNum)

Retreives machine details based on model number argument (modelNum).

var details = machine.getMachineDetails(0x1335);
{
    models : [0x1335, 0x133B],
    name : 'Biaxial Chest Press A300'
}

Contributors

Copyright Keiser Corporation under the MIT license.

FAQs

Package last updated on 15 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc