Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soulman-is-good/ccnet

CashCode NET protocol implementation
https://github.com/soulman-is-good/ccnet

Last synced: about 2 months ago
JSON representation

CashCode NET protocol implementation

Awesome Lists containing this project

README

        

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
-------------

```bash
npm install ccnet
```

Usage
-----

```javascript
//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){
//...
});
```