Skip to content

Commit

Permalink
Merge pull request #105 from jloxfo2/client_block2_option
Browse files Browse the repository at this point in the history
Set Block2 M bit to zero in the request
  • Loading branch information
Covertness authored Oct 27, 2024
2 parents 783a7b5 + 6ee0395 commit a5afd77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,7 @@ impl<T: ClientTransport + 'static> CoAPClient<T> {
request.message.clear_option(CoapOption::Block2);
let mut next_block2 = block2.clone();
next_block2.num += 1;
next_block2.more = false;
request
.message
.add_option_as::<BlockValue>(CoapOption::Block2, next_block2);
Expand Down

0 comments on commit a5afd77

Please sign in to comment.