1.1.6 • Published 14 days ago

cccd-chip-sdk v1.1.6

Weekly downloads
-
License
-
Repository
-
Last release
14 days ago

CCCD_CHIP_SDK

This library was generated with Angular CLI version 10.1.6.

Code scaffolding

Run ng generate component component-name --project tpb-sdk-for-vms to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project tpb-sdk-for-vms.

Note: Don't forget to add --project tpb-sdk-for-vms or else it will be added to the default project in your angular.json file.

Build

Run ng build tpb-sdk-for-vms to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build tpb-sdk-for-vms, go to the dist folder cd dist/tpb-sdk-for-vms and run npm publish.

Cách dùng thư viện

npm install cccd-chip-sdk

Import thư viện

import {CardChipScanService} from "cccd-chip-sdk";

Sử dụng thư viện trong angular

   constructor(private cardChipService: CardChipScanService) {
        this.cardChipService.connect("10.2.148.149");
        this.getMessage();
  }
  
  getMessage(){
        this.cardChipService.onDataReceived().subscribe((data) => {
            console.log('Có dữ liệu mới:', data);
            this.message = data
            if(data !== 'ERROR_CONNECT') {
                this.callAPICard(data)
            }else {
                console.log('error connect to device')
            }
        });
    }
1.1.6

14 days ago

1.1.5

3 months ago

1.1.4

3 months ago

1.1.3

3 months ago

1.1.1

4 months ago

1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.1.2

4 months ago

1.0.3

4 months ago

1.0.10

4 months ago

1.0.2

5 months ago

1.0.1

7 months ago