May 19, 2021 WeChat Mini Program Development Document
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
IsoDep tag
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Disconnect
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Connect the NFC label
Attributes | type | Defaults | Required | illustrate |
---|---|---|---|---|
success | function | no | Interface call successful callback function | |
fail | function | no | Interface call failed callback function | |
complete | function | no | The callback function ended in the interface call (the call is successful, failed) |
Basic Branch 2.11.2 Start support, low version needs to do Compatibility 。
Get reset information
Attributes | type | Defaults | Required | illustrate |
---|---|---|---|---|
success | function | no | Interface call successful callback function | |
fail | function | no | Interface call failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Property | Type | Description |
---|---|---|
histBytes | ArrayBuffer | Returns historical binary data |
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Gets the maximum transfer length
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Property | Type | Description |
---|---|---|
length | number | Maximum transmission length |
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Set a timeout
Property | Type | The default | Required | Description |
---|---|---|---|---|
timeout | number | Is | Set timeout (ms) | |
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Base library 2.11.2 starts to be supported, and low versions need to be compatible.
Send data
Property | Type | The default | Required | Description |
---|---|---|---|---|
data | ArrayBuffer | Is | The binary data that needs to be passed | |
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Property | Type | Description |
---|---|---|
data | ArrayBuffer |