Skip to content

How to force send a HTTP 200 command in a rest.function #309

@ralbright-wa

Description

@ralbright-wa

I am likely aRest and it is working quite well. However one of my main gripes is that there is a general lack of ability to send HTTP codes back to the requesting client. (Code 200 for example), so if you have a function that takes time to run (opening a drawer via an actuator, for example). The browser used when calling for testing or what ever you use, shows a spinning processing circle until it has completely finished the function.

This also produces undesirable results when you send a reset command (void(* resetFunc) (void) = 0; //declare reset function @ address 0)
I can activate this via a rest function, but the browser times out after 30 seconds or so, and then I get timeout problems in my log. How can I get it to send a HTTP 200 code early?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions