You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
The port object I'm currently getting from arduino-webusb has a .send() method that will send a string over the WebUSB connection to the device. But this .send() doesn't provide the actual response from the Arduino.
In #21 I prototyped a protocol where the Arduino would send a comma-delimited command,payload message to the UI, which the UI would listen for and handle.
This works but it doesn't seem optimal to me. It will become complicated to keep track of loading states. And it's ugly.
Hopefully we can find a better way ...
The text was updated successfully, but these errors were encountered:
justinmoon
changed the title
Spec out the protocol for serial communication
Spec out the protocol for WebUSB communication
Aug 28, 2018
The
port
object I'm currently getting from arduino-webusb has a.send()
method that will send a string over the WebUSB connection to the device. But this.send()
doesn't provide the actual response from the Arduino.In #21 I prototyped a protocol where the Arduino would send a comma-delimited
command,payload
message to the UI, which the UI would listen for and handle.This works but it doesn't seem optimal to me. It will become complicated to keep track of loading states. And it's ugly.
Hopefully we can find a better way ...
The text was updated successfully, but these errors were encountered: