Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

Spec out the protocol for WebUSB communication #23

@justinmoon

Description

@justinmoon

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 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions