Skip to content

Commit

Permalink
feat(binding-coap)!: use blockSize instead of blockSZX
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Mar 18, 2023
1 parent 654d917 commit 4b76850
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/src/binding_coap/coap_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ extension CoapFormExtension on Form {
}

/// Indicates the Block2 size preferred by a server.
BlockSize? get block2Size => _determineBlockSize('block2SZX');
BlockSize? get block2Size => _determineBlockSize('block2Size');

/// Indicates the Block1 size preferred by a server.
BlockSize? get block1Size => _determineBlockSize('block1SZX');
BlockSize? get block1Size => _determineBlockSize('block1Size');

// TODO: Consider default method
/// Indicates the [CoapRequestMethod] contained in this [Form].
Expand Down
8 changes: 4 additions & 4 deletions test/binding_coap/coap_vocabulary_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ void main() {
'cov:contentFormat': 60,
'cov:accept': 60,
'cov:blockwise': {
'cov:block1SZX': 32,
'cov:block2SZX': 64,
'cov:block1Size': 32,
'cov:block2Size': 64,
},
'response': {
'contentType': 'application/cbor',
Expand All @@ -45,8 +45,8 @@ void main() {
{
'href': 'coap://example.org',
'cov:blockwise': {
'cov:block1SZX': 5000,
'cov:block2SZX': 4096,
'cov:block1Size': 5000,
'cov:block2Size': 4096,
},
},
]
Expand Down

0 comments on commit 4b76850

Please sign in to comment.