Skip to content

Allow Packet file uploads #312

@gfwilliams

Description

@gfwilliams

Espruino has supported uploading files as binary packets for the last few releases - it's faster and more reliable without flow control because it uses 'ack/nak' packets.

I've done a bunch of work to the IDE to move to UART.js's connection class that contains an espruinoSendFile function to handle this.

What we need to do now is actually use it.

Right now, code is transformed ready to send, and then it goes to wrap in saveOnSend.js which comes up with the actual JS code that's needed to send the file depending on the selected upload style and filename.

This needs to change, since what we'd now want to do is not wrap the code (just to send the current time/etc) but to then call connection.espruinoSendFile.

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