Constructor
new SdtApi(plug)
精伦身份证阅读器操作接口
Parameters:
Name | Type | Description |
---|---|---|
plug | RktPlug | 插件通信对象 |
- Source
Methods
(async) close() → {Promise}
关闭读卡器连接
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) open() → {Promise}
连接读卡器设备
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) read() → {Promise}
读取已复位激活的身份证信息
- Source
Returns:
err/msg + retval/name/sex/nation/birthDay/address/IDNo/department/startDate/endDate/photo
- Type:
- Promise
(async) reset(idle) → {Promise}
身份证寻卡复位激活
Parameters:
Name | Type | Default | Description |
---|---|---|---|
idle | boolean | false | 如果IDLE为true则当卡片已被读取后未离开阅读器时将返回false |
- Source
Returns:
err/msg + retval
- Type:
- Promise