Limited availability
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Note: This feature is available in Dedicated Web Workers.
The SerialPort.getSignals()
method of the SerialPort
interface returns a Promise
that resolves with an object containing the current state of the port's control signals.
None.
Return valueReturns a Promise
that resolves with an object containing the following members:
clearToSend
A boolean indicating to the other end of a serial connection that is clear to send data.
dataCarrierDetect
A boolean that toggles the control signal needed to communicate over a serial connection.
dataSetReady
A boolean indicating whether the device is ready to send and receive data.
ringIndicator
A boolean indicating whether a ring signal should be sent down the serial connection.
InvalidStateError
DOMException
Returned if the port is not open. Call SerialPort.open()
to avoid this error.
NetworkError
DOMException
Returned if the signals on the device could not be read.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4