0.0.2 • Published 7 years ago
brain-sdk v0.0.2
SDK for Brain
A small library that support 2 methods to call brain.
## Installation
npm install @duyhtq/brain-sdk
## Usage
var brain = require('');
## - sendSensor
var jsonData = {a:1,b:2,c:3};
brain.sendSensor(jsonData);
## - sendSensorForResult
var jsonData = {a:1,b:2,c:3};
brain.sendSensorForResult(jsonData, function(err, data){
console.log(data);
});
## Tests
npm run test