Skip to content

getPorts disabled on timeout #268

Open
@d3nd3

Description

@d3nd3

https://github.com/espruino/EspruinoTools/blob/4067a9c43842c67e946b275ef5541d87ef263dd4/core/serial_frame.js#L105

I am using EspruinoHub with the serial_frame mqtt-ble solution.
I use a raspberry pi 4 as my main pc, so its very slow, sometimes when i disconnect from the IDE, then reOpen the menu ports, it does not communicate fast enough causing the 'port' to be disabled in menu until i refresh the page. Its a minor annoyance.

I wonder if the timeout check can be made optional, I understand the code lives in EspruinoTools, so must be very generic. I think the WebIDE does not require the timeout because it checks the ports again on a 2 sec interval.

What are your thoughts , can anything be changed about this? If least perhaps an increase in the 100ms timeout.

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