domotz-pinger
v0.0.8
Published
A library for ping a device and collect statistics
Downloads
4
Readme
#Pinger
Collect latency and packet loss info on devices.
#Examples
#!javascript
var Ping = require('domotz-pinger');
var ping = new Ping(100);
Usage
#!javascript
ping.do('192.168.5.73', 'b8:27:eb:7e:b2:6f') .then(console.log)
// ...
ping.get(); // Get collected info
#install
=======
With [npm](http://registry.domotz.com::54873) do:
#!bash
npm install domotz-pinger
#test
====
From the root directory of the project do:
```bash
npm test