EZ-B Allow to set values into a EZ-Builder through socket communication. In order for this module to work you must enable Server communication in the EZ-Builder
How to Install
npm install ez-b
How to use
First, require ez-b:
var ez_b =require('ez-b');
Next, enable the server in EZ-Builder in order to allow TCP connections.
Connect to your EZ-Builder server
ez_b.connect({host:'localhost', port:6666});
That is it!!! Now you are ready to start sending command to your EZ-B from Nodejs
Example 1
Connect to EZ-Builder and connect to board 0
var ez_b =require('ez-b');
ez_b.connect({host:'localhost', port:6666});
ez_b.connectBoard(0);
Control Servo using jQueryUI and BootStrap
First, install ez-b and socket.io
npm install ez-b
npm install socket.io
Setup your application to listen to incomming messages from a webpage
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.