Skip to content

a1motion/driveweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

driveweb

Driveweb Interface

Install

With yarn:

yarn add @a1motion/driveweb

or with npm:

npm i -S @a1motion/driveweb

Usage

Basic Example

const driveweb = require('driveweb');

// Create an instance by passing the device's ip.
const smarty = driveweb('192.168.51.2');

// Get a paramter by passing its ids or an array of ids:
const speed = await smarty.getParameter(5026);

// Set an parameter:
const newSpeed = await smarty.setParameter(5026, 100);