-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat(protocol): add serverless protocol library #16
Conversation
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
3f5db89
to
9e435c4
Compare
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
78da532
to
e597272
Compare
Added libudev-dev in github actions step |
…pe to checksum (#2) * feat: make checksum from payload as bytes instead of relying on serde_json::to_string * feat: rework checksum to add message_type feat: rework checksum to use sha256 Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
39034a8
to
0464cae
Compare
The checksum is now calculated using the content of the payload and the message type, without relying on |
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.
LGTM
src/serverless_protocol/README.md
Outdated
2. Run the example: | ||
|
||
```bash | ||
cargo run --example cargo run --example serverless_protocol_example -- --serial-path-a=<path_to_first_pty> --serial-path-b=<path_to_second_pty> |
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.
Remove typo
cargo run --example cargo run --example serverless_protocol_example -- --serial-path-a=<path_to_first_pty> --serial-path-b=<path_to_second_pty> | |
cargo run --example serverless_protocol_example -- --serial-path-a=<path_to_first_pty> --serial-path-b=<path_to_second_pty> |
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
c07b01a
to
2591a22
Compare
@charley04310 @thomas-mauran does this match your needs ? |
closed in favor of this, we dont need this protocol, we can just use the network now |
Create a lib to communicate over a serial port.
Added README on how to test it.
I think one point of improvement is to not calculate the checksum from the payload converted to json as we don't know wether serde or another json converter parser will convert it the same way.