Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for HTTP requests to Gadgetbridge #169

Closed
jakkra opened this issue Nov 30, 2023 · 0 comments
Closed

API for HTTP requests to Gadgetbridge #169

jakkra opened this issue Nov 30, 2023 · 0 comments
Labels
BLE Bluetooth related enhancement New feature or request mid prio Mid Prio Tasks No Hardware Required Can be developed within native_posix build.

Comments

@jakkra
Copy link
Owner

jakkra commented Nov 30, 2023

Abstract away the packet formatting and GB response parsing. Maybe add re-try mechanisms in case GadgetBridge is unreliable.

For example:

For the id see https://www.espruino.com/Gadgetbridge#messages-from-bangle-js-to-phone

rsp_cb(id, return_code, data); // return code OK, ERROR, Timoeut for example.
zsw_ble_http_get(patch, id, rsp_cb);
zsw_ble_http_abort(id); // Not sure if needed if an app is closed. Probably can just ignore the response
@jakkra jakkra added enhancement New feature or request No Hardware Required Can be developed within native_posix build. BLE Bluetooth related mid prio Mid Prio Tasks labels Nov 30, 2023
@jakkra jakkra closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLE Bluetooth related enhancement New feature or request mid prio Mid Prio Tasks No Hardware Required Can be developed within native_posix build.
Projects
None yet
Development

No branches or pull requests

1 participant