Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The writable
read-only property of the SerialPort
interface returns a WritableStream
for sending data to the device connected to the port. Chunks written to this stream must be instances of BufferSource
(for example, an ArrayBuffer
or ArrayBufferView
such as Uint8Array
). This property is non-null as long as the port is open and has not encountered a fatal error.