-
Notifications
You must be signed in to change notification settings - Fork 41
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
Http client #522
Http client #522
Conversation
Hey @yassiezar. Is there any issue with moving the client folder https://github.com/yassiezar/SMACC2/tree/http-client/smacc2_sm_reference_library/sm_atomic_http/include/sm_atomic_http/clients/client_behaviors to the https://github.com/robosoft-ai/SMACC2/tree/humble/smacc2_client_library folder? |
No issues, but I'll probably need to modify it to make it a bit more generic so that its useful to other users |
Are there any complications with...
|
@brettpac I moved the packages and made separate CPP files. I still want to modify the client to be more generically useful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only thing left to do is move this file into a client behaviors folder in the http client directory.
@brettpac just to update you, the example isn't working as expected anymore and HTTP responses aren't being received. I'm busy investigating, but I suspect it has to do with changes to Boost::beast's APIs. I'll ping you when its resolved |
…compilation units. Modified examples to use this new client
Pretty sure this change was made accidently.
Messed up first commit
Added License to file to clean up format error
Found better Copyright & License for CI Format error.
Another little format error
Somehow a bracket became a cNode
- Fixed response callback not triggering correctly and causing a crash - Fixed example not transitioning back to state 1 after a response has been received
…compilation units. Modified examples to use this new client
Added License to file to clean up format error
Found better Copyright & License for CI Format error.
Another little format error
Somehow a bracket became a cNode
- Fixed response callback not triggering correctly and causing a crash - Fixed example not transitioning back to state 1 after a response has been received
…ient can decide between which session to initialise at runtime depending on the server set
I think it's just being held up by precommit... Command: pre-commit run -a |
Hi @yassiezar , thank you for this pull request. Looks awesome. For the cb_http_request found here... Let's move that into a new folder entitled "client_behaviors" and place that folder inside of this one... So the end result would look like... Thank you, |
Hi Jaycee, looks like we're missing some copyrights...
|
// Copyright 2021 RobosoftAI Inc. /*****************************************************************************************************************
******************************************************************************************************************/ |
Hmmm. As Im reading it, the failed binary check is tied to the sm_simple_action_client state machine package I just merged a few minutes ago... |
@brettpac I just merged in your changes. That might fix the error |
.pre-commit-config.yaml
Outdated
@@ -63,7 +63,7 @@ repos: | |||
- id: clang-format | |||
name: clang-format | |||
description: Format files with ClangFormat. | |||
entry: clang-format-12 | |||
entry: clang-format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brettpac I replaced the usage of the specific clang-format version with the generic executable. Currently Ubuntu installs clang-format 14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nevermind, I see the CI container is specifically looking for clang-format-12
I think to get this passing we just have to run precommit twice. Once to make fixes (which I can see it does from the logs), and the other to approve. |
All the checks pass when i run it locally, not sure how to get it to pass here. I'm not sure why the |
┆Issue is synchronized with this Jira Task by Unito