-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add support for qos settings in sample #348
Add support for qos settings in sample #348
Conversation
@DenisBiryukov91 If this pull request contains a bugfix or a new feature, then please consider using |
- add missing dots in docs
z_congestion_control_t congestion_control; | ||
bool express; | ||
} _z_qos_t; | ||
|
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 comment and the structure do not agree on type visibility (_z_priority_t
vs z_priority_t
), also we use _Bool
for booleans generally.
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.
fixed
@@ -227,6 +241,7 @@ typedef struct { | |||
_z_timestamp_t timestamp; | |||
_z_encoding_t encoding; | |||
z_sample_kind_t kind; | |||
_z_qos_t qos; |
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.
Pretty sure by putting the private type here, the public alias z_qos_t
is never used. So I'm tempted to use z_qos_t
instead, if that doesn't cause include issues.
@@ -29,7 +29,8 @@ | |||
break; | |||
} | |||
} | |||
printf("[rx]: Received packet on %s, len: %d, validity: %d\n", z_loan(keystr), (int)sample->payload.len, is_valid); | |||
printf("[rx]: Received packet on %s, len: %d, validity: %d, qos {priority: %d, cong_ctrl: %d}\n", z_loan(keystr), |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 17.7 rule Note test
- replace _z_n_qos_unmake with _z_n_qos_unmake_public in subscription.c
Add support for qos settings in sample (see eclipse-zenoh/zenoh#730)