Skip to content

Commit 777e048

Browse files
author
Antti Kauppila
committed
Merge pull request #13 from ARMmbed/ver_update
Updated mbec-client-c version & unit tests
2 parents 6456957 + c00a0f8 commit 777e048

File tree

4 files changed

+6
-41
lines changed

4 files changed

+6
-41
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ coverage
77
build/
88
yotta_modules/
99
yotta_targets/
10-
10+
upload.tar.gz

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"dependencies": {
2121
"nanostack-libservice": "^3.0.0",
22-
"mbed-client-c": "^1.1.0",
22+
"mbed-client-c": "^2.0.0",
2323
"sal-stack-nanostack": "^3.0.0",
2424
"mbedtls": "^2.0.0"
2525
},

test/coap-service/unittest/run_tests~

Lines changed: 0 additions & 34 deletions
This file was deleted.

test/coap-service/unittest/stub/sn_coap_protocol_stub.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,22 @@ struct coap_s *sn_coap_protocol_init(void *(*used_malloc_func_ptr)(uint16_t), vo
4646
return sn_coap_protocol_stub.expectedCoap;
4747
}
4848

49-
//Yotta is not yet updated to use mbed-client-c 2.x version(git is), so do not modify these 4 yet to contain handle
50-
int8_t sn_coap_protocol_set_block_size(uint16_t block_size)
49+
int8_t sn_coap_protocol_set_block_size(struct coap_s *handle, uint16_t block_size)
5150
{
5251
return sn_coap_protocol_stub.expectedInt8;
5352
}
5453

55-
int8_t sn_coap_protocol_set_duplicate_buffer_size(uint8_t size)
54+
int8_t sn_coap_protocol_set_duplicate_buffer_size(struct coap_s *handle, uint8_t size)
5655
{
5756
return sn_coap_protocol_stub.expectedInt8;
5857
}
5958

60-
int8_t sn_coap_protocol_set_retransmission_parameters(uint8_t resending_count, uint8_t resending_intervall)
59+
int8_t sn_coap_protocol_set_retransmission_parameters(struct coap_s *handle, uint8_t resending_count, uint8_t resending_intervall)
6160
{
6261
return sn_coap_protocol_stub.expectedInt8;
6362
}
6463

65-
int8_t sn_coap_protocol_set_retransmission_buffer(uint8_t buffer_size_messages, uint16_t buffer_size_bytes)
64+
int8_t sn_coap_protocol_set_retransmission_buffer(struct coap_s *handle, uint8_t buffer_size_messages, uint16_t buffer_size_bytes)
6665
{
6766
return sn_coap_protocol_stub.expectedInt8;
6867
}

0 commit comments

Comments
 (0)