Browse Source

Use the actual toDeviceStream (#721)

pull/723/head
Henri Bergius 11 months ago
committed by GitHub
parent
commit
0e29639222
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/transport-node/src/transport.ts

2
packages/transport-node/src/transport.ts

@ -46,7 +46,7 @@ export class TransportNode implements Types.Transport {
this._fromDevice = fromDeviceSource.pipeThrough(Utils.fromDeviceStream());
// Stream for data going FROM the application TO the Meshtastic device.
const toDeviceTransform = new TransformStream<Uint8Array, Uint8Array>();
const toDeviceTransform = Utils.toDeviceStream;
this._toDevice = toDeviceTransform.writable;
// The readable end of the transform is then piped to the Node.js socket.

Loading…
Cancel
Save