Skip to content

Library asynchronous mode for Web port. (ESF-223) #140

@Maksons

Description

@Maksons

Is your feature request related to a problem?

Hello,

Most (or all) function in library are synchronous, Serial Receive/Transmit wait until it's finished.
I would like to use this library in Web/JavaScript with help of Emscripten, but it prefer asynchronous operations ( Serial/UART receive happen when not busy checking it ).
So question is how hard it would be to convert this library to asynchronous ?

Describe the solution you'd like

I see it as some type of state machine, with states / substates :

  • Idle state
  • Connecting
  • Reading
  • Flashing
  • etc

Sub-states like:

  • Idle
  • Processing data
  • Waiting for data receive (from Serial/UART )
  • Waiting for data sent out (over Serial/UART )

Describe alternatives you've considered

Would be happy to hear possible alternatives...

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions