Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
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.