Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.
/ ccnet Public archive
forked from soulman-is-good/ccnet

CashCode NET protocol implementation

Notifications You must be signed in to change notification settings

KYSergey/ccnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CashCode NET protocol implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%