@@ -176,28 +176,26 @@ int16_t coap_service_virtual_socket_set_cb(int8_t service_id, coap_service_virtu
176
176
* Register application and informs CoAP services unsecure registery callback function.
177
177
*
178
178
* \param service_id Id number of the current service.
179
- * \param *uri_ptr Pointer to uri.
180
- * \param uri_len Length of uri.
179
+ * \param *uri Uri address.
181
180
* \param port port that Application wants to use for communicate with coap server.
182
181
* \param allowed_method Informs method that is allowed to use (used defines described above).
183
- * \param *request_recv_cb CoAP service request receive callback function pointer.
182
+ * \param *request_recv_cb CoAP service request receive callback function pointer.
184
183
*
185
184
* \return 0 for success / -1 for failure
186
185
*/
187
- int8_t coap_service_register_uri (int8_t service_id , uint8_t * uri_ptr , uint16_t uri_len , uint8_t allowed_method , coap_service_request_recv_cb * request_recv_cb );
186
+ int8_t coap_service_register_uri (int8_t service_id , char * uri , uint8_t allowed_method , coap_service_request_recv_cb * request_recv_cb );
188
187
189
188
/**
190
189
* \brief Unregister unsecure callback methods to CoAP server
191
190
*
192
191
* Register application and informs CoAP services unsecure registery callback function.
193
192
*
194
193
* \param service_id Id number of the current service.
195
- * \param *uri_ptr Pointer to uri.
196
- * \param uri_len Length of uri.
194
+ * \param *uri Uri address.
197
195
*
198
196
* \return 0 for success / -1 for failure
199
197
*/
200
- int8_t coap_service_unregister_uri (int8_t service_id , uint8_t * uri_ptr , uint16_t uri_len );
198
+ int8_t coap_service_unregister_uri (int8_t service_id , char * uri );
201
199
202
200
203
201
/**
@@ -242,16 +240,15 @@ uint16_t coap_service_send(int8_t service_id, uint8_t options, uint8_t addr[stat
242
240
* \param destination_port Destination port
243
241
* \param msg_type Message type can be found from sn_coap_header.
244
242
* \param msg_code Message code can be found from sn_coap_header.
245
- * \param *uri_ptr Pointer to uri.
246
- * \param uri_len Length of uri.
243
+ * \param *uri Uri address.
247
244
* \param cont_type Content type can be found from sn_coap_header.
248
245
* \param payload_ptr Pointer to message content.
249
246
* \param payload_len Lenght of the message.
250
247
* \param *request_response_cb Callback to inform result of the request.
251
248
*
252
249
* \return msg_id Id number of the current message.
253
250
*/
254
- uint16_t coap_service_request_send (int8_t service_id , uint8_t options , uint8_t destination_addr [static 16 ], uint16_t destination_port , uint8_t msg_type , uint8_t msg_code , uint8_t * uri_ptr , uint16_t uri_len ,
251
+ uint16_t coap_service_request_send (int8_t service_id , uint8_t options , uint8_t destination_addr [static 16 ], uint16_t destination_port , uint8_t msg_type , uint8_t msg_code , char * uri ,
255
252
uint8_t cont_type , uint8_t * payload_ptr , uint16_t payload_len , coap_service_response_recv * request_response_cb );
256
253
257
254
/**
0 commit comments