srv-client

1.4.1 • Public • Published

srv-client Build Status

node module to facilitate connection to and control of an SRV-1 Surveyor robot via tcp

NPM

Usage

configure and connect

const SrvClient = require('srv-client');
 
let client = new SrvClient({
  host: '192.168.1.123',
  port: 1138
});
 
client.connect(function(err){
  // handle error and/or do stuff
});
 

move in specified direction (supported: forward, backward, left, right)

client.go('forward', function(err){
  // handle error and/or do stuff
});

stop moving

client.stop(function(err){
  // handle error and/or do stuff
});

turn laser on or off

client.setLaser('on', function(err){
  // handle error and/or do stuff
});

Additional Info

full list of motor commands are specified here: [http://www.surveyor.com/SRV_protocol.html]

Package Sidebar

Install

npm i srv-client

Weekly Downloads

1

Version

1.4.1

License

MIT

Unpacked Size

7.1 kB

Total Files

9

Last publish

Collaborators

  • yamanote1138