CoAPnet is a high performance .NET library for CoAP based communication. It provides a CoAP client and a CoAP server. It also has DTLS support out of the box.
According to the standard, in a Block2 transfer the client should set the "more" bit in Block2 option as 0. Although this shouldn't pose an issue, it's still technically a requirement.
I added "receivedBlock2OptionValue.HasFollowingBlocks = false;" in the loop CoapClientBlockTransferReceiver.ReceiveFullPayload method
According to the standard, in a Block2 transfer the client should set the "more" bit in Block2 option as 0. Although this shouldn't pose an issue, it's still technically a requirement. I added "receivedBlock2OptionValue.HasFollowingBlocks = false;" in the loop CoapClientBlockTransferReceiver.ReceiveFullPayload method