ccnet

0.0.5 • Public • Published

CashCode NET protocol nodejs implementation

Introduction

We have searched the web for implementation of ccnet protocol for nodejs to no avail. So we decided to write our owns. Banal decision you think, yes.

Installation

npm install ccnet

Usage

//open serial port /dev/ttyS0 as Bill validator(0x03 - from CCNET documentation)
var ccnet = require('ccnet'),
  ccnet = new ccnet({device:'/dev/ttyS0', type:0x03});
 
ccnet.execute('RESET',function(err){
    if(err){
        console.error(err);
    } else {
        console.log('RESET finished');
    }
});
//OR just
ccnet.reset(function(err){
//...
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    2
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i ccnet

Weekly Downloads

2

Version

0.0.5

License

ISC

Last publish

Collaborators

  • soulman.is.good