@@ -40,9 +40,9 @@ extern "C" {
40
40
#define COAP_SERVICE_ACCESS_DELETE_ALLOWED 0x08
41
41
42
42
// Bits for service options
43
- #define COAP_SERVICE_OPTIONS_NONE 0x00
43
+ #define COAP_SERVICE_OPTIONS_NONE 0x00
44
44
#define COAP_SERVICE_OPTIONS_VIRTUAL_SOCKET 0x01
45
- #define COAP_SERVICE_OPTIONS_SECURE 0x02
45
+ #define COAP_SERVICE_OPTIONS_SECURE 0x02
46
46
#define COAP_SERVICE_OPTIONS_EPHEMERAL_PORT 0x04
47
47
/** Coap interface selected as socket interface */
48
48
#define COAP_SERVICE_OPTIONS_SELECT_SOCKET_IF 0x08
@@ -52,7 +52,7 @@ extern "C" {
52
52
#define COAP_SERVICE_OPTIONS_SECURE_BYPASS 0x80
53
53
54
54
// Bits for request options
55
- #define COAP_REQUEST_OPTIONS_NONE 0x00
55
+ #define COAP_REQUEST_OPTIONS_NONE 0x00
56
56
#define COAP_REQUEST_OPTIONS_ADDRESS_DEFAULT 0x00//!< default is not setting either short or long.
57
57
#define COAP_REQUEST_OPTIONS_ADDRESS_LONG 0x01
58
58
#define COAP_REQUEST_OPTIONS_ADDRESS_SHORT 0x02
@@ -105,7 +105,7 @@ typedef int coap_service_request_recv_cb(int8_t service_id, uint8_t source_addre
105
105
*
106
106
* \return 0 for success / -1 for failure
107
107
*/
108
- typedef int coap_service_security_start_cb (int8_t service_id , uint8_t address [static 16 ], uint16_t port , uint8_t * pw , uint8_t * pw_len );
108
+ typedef int coap_service_security_start_cb (int8_t service_id , uint8_t address [static 16 ], uint16_t port , uint8_t * pw , uint8_t * pw_len );
109
109
110
110
/**
111
111
* \brief CoAP service security done callback
@@ -142,7 +142,7 @@ extern int8_t coap_service_initialize(int8_t interface_id, uint16_t listen_port,
142
142
*
143
143
* \param service_id Id number of the current service.
144
144
*/
145
- extern void coap_service_delete ( int8_t service_id );
145
+ extern void coap_service_delete (int8_t service_id );
146
146
147
147
/**
148
148
* \brief Close secure connection
@@ -243,7 +243,7 @@ extern int8_t coap_service_unregister_uri(int8_t service_id, const char *uri);
243
243
* \return msg_id Id number of the current message.
244
244
*/
245
245
extern uint16_t coap_service_request_send (int8_t service_id , uint8_t options , const uint8_t destination_addr [static 16 ], uint16_t destination_port , sn_coap_msg_type_e msg_type , sn_coap_msg_code_e msg_code , const char * uri ,
246
- sn_coap_content_format_e cont_type , const uint8_t * payload_ptr , uint16_t payload_len , coap_service_response_recv * request_response_cb );
246
+ sn_coap_content_format_e cont_type , const uint8_t * payload_ptr , uint16_t payload_len , coap_service_response_recv * request_response_cb );
247
247
248
248
/**
249
249
* \brief Sends CoAP service response
@@ -261,7 +261,7 @@ extern uint16_t coap_service_request_send(int8_t service_id, uint8_t options, co
261
261
* \return -1 For failure
262
262
*- 0 For success
263
263
*/
264
- extern int8_t coap_service_response_send (int8_t service_id , uint8_t options , sn_coap_hdr_s * request_ptr , sn_coap_msg_code_e message_code , sn_coap_content_format_e content_type , const uint8_t * payload_ptr ,uint16_t payload_len );
264
+ extern int8_t coap_service_response_send (int8_t service_id , uint8_t options , sn_coap_hdr_s * request_ptr , sn_coap_msg_code_e message_code , sn_coap_content_format_e content_type , const uint8_t * payload_ptr , uint16_t payload_len );
265
265
266
266
/**
267
267
* \brief Sends CoAP service response
@@ -280,7 +280,7 @@ extern int8_t coap_service_response_send(int8_t service_id, uint8_t options, sn_
280
280
* \return -1 For failure
281
281
*- 0 For success
282
282
*/
283
- extern int8_t coap_service_response_send_by_msg_id (int8_t service_id , uint8_t options , uint16_t msg_id , sn_coap_msg_code_e message_code , sn_coap_content_format_e content_type , const uint8_t * payload_ptr ,uint16_t payload_len );
283
+ extern int8_t coap_service_response_send_by_msg_id (int8_t service_id , uint8_t options , uint16_t msg_id , sn_coap_msg_code_e message_code , sn_coap_content_format_e content_type , const uint8_t * payload_ptr , uint16_t payload_len );
284
284
285
285
/**
286
286
* \brief Delete CoAP request transaction
0 commit comments