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

Rework HTTP/JSON handling to be cleaner #106

Merged
merged 17 commits into from
Nov 21, 2023
Merged

Conversation

hhvrc
Copy link
Member

@hhvrc hhvrc commented Nov 7, 2023

Yet another step in the direction of getting rid of the arduino framework.

This is just the implementation, steps can be taken to make the interface alot better.

We could implement a C++ wrapper for the C methods.

@hhvrc hhvrc added type: optimization in: serial Issues in serial communications in: api-comms Issues communicating with the API labels Nov 7, 2023
@hhvrc hhvrc requested review from LucHeart and redmushie November 7, 2023 12:51
@hhvrc hhvrc self-assigned this Nov 7, 2023
@hhvrc hhvrc changed the title Remove arduinojson dependency Rework HTTP/JSON handling to be cleaner Nov 7, 2023
* develop:
  Conform EStopManager to code style (#109)
  More code cleanup (#107)
@hhvrc hhvrc marked this pull request as draft November 8, 2023 23:07
@hhvrc hhvrc requested a review from redmushie November 21, 2023 02:26
@hhvrc hhvrc marked this pull request as ready for review November 21, 2023 02:27
@hhvrc hhvrc merged commit 81838e7 into develop Nov 21, 2023
@hhvrc hhvrc deleted the feature/remove-arduinojson branch November 21, 2023 15:10
hhvrc added a commit that referenced this pull request Nov 27, 2023
* develop: (29 commits)
  build(deps-dev): Bump the npm-dependencies group in /WebUI with 11 updates (#127)
  Remove loop() behaviour from code (#123)
  Check if link code is proper length + use numeric input (#124)
  RGB Support plus OpenShock Core V1 board definition (#121)
  Increase stability by handling heavy tasks better (#122)
  D1 Mini default pin should be 15
  Rework HTTP/JSON handling to be cleaner (#106)
  Push color palette (#118)
  build(deps-dev): Bump the npm-dependencies group in /WebUI with 9 updates (#117)
  build(deps-dev): Bump the npm-dependencies group (#116)
  Decrease cache to 1 hour (#115)
  Fix captive portal not showing network savestate + forget functionality (#113)
  Improve git commit hash CPP define (#110)
  Conform EStopManager to code style (#109)
  More code cleanup (#107)
  Bugfix/shocker unpaired randomly (#105)
  Some more code cleanup (#104)
  Fix serial WiFi configuration not working (#102)
  Better captive portal logging (#103)
  Add http caching with filesystem hash to reduce load on esp (#101)
  ...
hhvrc added a commit that referenced this pull request Nov 27, 2023
* develop: (48 commits)
  build(deps-dev): Bump the npm-dependencies group in /WebUI with 11 updates (#127)
  Remove loop() behaviour from code (#123)
  Check if link code is proper length + use numeric input (#124)
  RGB Support plus OpenShock Core V1 board definition (#121)
  Increase stability by handling heavy tasks better (#122)
  D1 Mini default pin should be 15
  Rework HTTP/JSON handling to be cleaner (#106)
  Push color palette (#118)
  build(deps-dev): Bump the npm-dependencies group in /WebUI with 9 updates (#117)
  build(deps-dev): Bump the npm-dependencies group (#116)
  Decrease cache to 1 hour (#115)
  Fix captive portal not showing network savestate + forget functionality (#113)
  Improve git commit hash CPP define (#110)
  Conform EStopManager to code style (#109)
  More code cleanup (#107)
  Bugfix/shocker unpaired randomly (#105)
  Some more code cleanup (#104)
  Fix serial WiFi configuration not working (#102)
  Better captive portal logging (#103)
  Add http caching with filesystem hash to reduce load on esp (#101)
  ...
LucHeart pushed a commit that referenced this pull request Jan 22, 2024
* Remove ArduinoJson dependency

* Add Json helper class

* More code cleanup

* Improve useragent

* Improve Json parsing and file structure

* [WIP] Implement ratelimiting and improve interface

* Group JsonAPI calls into common place

* Fix assignLCG endpoint url

* Add response code handling

* Improve Json deserializer logging

* Finish ratelimiter implementation

* Forgot to remove debug stuff
LucHeart added a commit that referenced this pull request Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: api-comms Issues communicating with the API in: serial Issues in serial communications type: optimization
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants