EZWare device driver module for SSTS system
npm install @sstscode/ezwareEZWare device driver module for SSTS system
``bash`
npm install @sstscode/ezware
`typescript
import { useEZWare } from '@sstscode/ezware'
import type { EventFunctionType, EventResultType } from '@sstscode/ezware'
// Define your event handlers
const globalEventFunction: EventFunctionType = (event) => {
console.log('Event received:', event)
}
const globalEventResult: EventResultType = (result) => {
console.log('Result received:', result)
}
// Initialize EZWare with default WebSocket URL (ws://localhost:8887)
const devices = useEZWare(globalEventFunction, globalEventResult)
// Or specify custom WebSocket URL
// const devices = useEZWare(globalEventFunction, globalEventResult, 'ws://your-url:port');
`
- Barcode Scanner: barcodebillValidator
- Bill Validator: camCommon
- Camera (Common): camSignature
- Signature Camera: cardDispenser
- Card Dispenser: icCardReader
- IC Card Reader: cardDispenserReader
- Card Dispenser Reader: idCardReader
- ID Card Reader (Inductive): idCardReader1
- ID Card Reader (Insertion): cardReader
- Card Reader: ssCardReader
- SS Card Reader: swCardReader
- Swipe Card Reader: pinPad
- PIN Pad: ptrCheckPrinter
- Check Printer: ptrCheckScanner
- Check Scanner: documentPrinter
- Document Printer: ptrFinger
- Fingerprint Scanner: labelPrinter
- Label Printer: passbookPrinter
- Passbook Printer: receiptPrinter
- Receipt Printer: ptrScanner
- Scanner: siu
- Sensors Interface Unit: baseComCtrl
- Base Com Ctrl: dJSignCtrl
- DJ Sign Ctrl: duoWenIMEInspur
- Duo Wen IME Inspur: duoWenIME
- Duo Wen IME: ftpPluginCtrl
- Ftp Plugin Ctrl: httpPluginCtrl
- Http Plugin Ctrl: inspPubCtrl
- Insp Pub Ctrl: oSPluginCtrl
- OS Plugin Ctrl: sapiSpVoiceCtrl
- Sapi Sp Voice Ctrl: wScriptShellCtrl
- WScript Shell Ctrl:
The default WebSocket URL is ws://localhost:8887. You can override this by passing a custom URL as the third parameter to useEZWare().
This package includes TypeScript type definitions. The main types are:
- EventFunctionType: Type for event handler functionEventResultType`: Type for result handler function
-
MIT