Closed domagojk closed 1 year ago
I am trying to send a command using Transport but I am stuck...
Transport
Without esptool-js, I was able to send those commands like this:
function send(command: string) { const encoder = new TextEncoder(); const dataArrayBuffer = encoder.encode(command); const writer = this.serialPort.writable.getWriter(); await writer.write(dataArrayBuffer); writer.releaseLock(); }
but this no longer works after ESPLoader is synced so I tried using Transporter:
function send(command: string) { const encoder = new TextEncoder(); const dataArrayBuffer = encoder.encode(command); await this.transport.write(dataArrayBuffer); }
However, I got no response... Could someone help me out?
nevermind, I managed to use the "old method" of sending commands after hard reseting
I am trying to send a command using
Transport
but I am stuck...Without esptool-js, I was able to send those commands like this:
but this no longer works after ESPLoader is synced so I tried using Transporter:
However, I got no response... Could someone help me out?