h

Dependencies:   C027_Support mbed-dev

Fork of C027_SupportTest_coapp by Umar Naeem

Revision:
39:4f3f7463e55f
Parent:
37:43d48521d4d7
--- a/Coap/coap_client.h	Wed May 24 07:51:33 2017 +0000
+++ b/Coap/coap_client.h	Thu May 25 11:53:45 2017 +0000
@@ -45,8 +45,6 @@
 #define COAP_CLIENT_HOST_BUF_LEN    128             /* Buffer length for host addresses */
 #define COAP_CLIENT_PORT_BUF_LEN    8               /* Buffer length for port numbers */
 
-//unsigned char ucReturnCode[10];     //Return code array
-
 /**
  *  @brief Test result enumeration
  */
@@ -158,12 +156,12 @@
  **/
 int coap_client_exchange(coap_client_t *client, coap_msg_t *req, coap_msg_t *resp);
 
-test_result_t test_exchange_func(char* buf,int buf_len);
+test_result_t test_exchange_func(char* buf,int buf_len,char* returncode);
 test_result_t check_resp(test_coap_client_msg_t *test_resp, coap_msg_t *resp);
 test_result_t compare_ver_token(coap_msg_t *req, coap_msg_t *resp);
-test_result_t exchange(coap_client_t *client, test_coap_client_msg_t *test_req, coap_msg_t *req, coap_msg_t *resp);
+test_result_t exchange(coap_client_t *client, test_coap_client_msg_t *test_req, coap_msg_t *req, coap_msg_t *resp,char* returncode);
 test_result_t populate_req(test_coap_client_msg_t *test_req, coap_msg_t *req);
-void print_coap_msg(const char *str, coap_msg_t *msg);
+void print_coap_msg(const char *str, coap_msg_t *msg,char* returncode);