Methods
close()
- Source:
Close serial port
getPath() → {string}
- Source:
Returns:
device path
- Type
- string
onReceived(listener) → {Subscription}
- Source:
Add data received listener
Parameters:
Name | Type | Description |
---|---|---|
listener |
listener |
Returns:
subscription
- Type
- Subscription
send(hex) → {Promise}
- Source:
Send hex data
Parameters:
Name | Type | Description |
---|---|---|
hex |
string | the hex of data |
Returns:
success promise
- Type
- Promise