Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/soulman-is-good/ccnet
- Owner: soulman-is-good
- Created: 2014-08-19T03:40:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-13T11:57:45.000Z (over 5 years ago)
- Last Synced: 2024-10-12T10:12:07.948Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 14
- Watchers: 5
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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){
//...
});
```