Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os by
coap_service_api_stub.c
00001 /* 00002 * Copyright (c) 2015-2016 ARM Limited. All Rights Reserved. 00003 */ 00004 00005 #include <string.h> 00006 00007 #include "ns_types.h" 00008 #include "ns_list.h" 00009 #include "ns_trace.h" 00010 #include "nsdynmemLIB.h" 00011 #include "sn_nsdl.h" 00012 #include "sn_coap_header.h" 00013 #include "coap_service_api.h" 00014 #include "coap_message_handler.h" 00015 #include "eventOS_event.h" 00016 #include "eventOS_scheduler.h" 00017 #include "eventOS_event_timer.h" 00018 #include "common_functions.h" 00019 #include "net_interface.h" 00020 00021 int8_t coap_service_initialize(int8_t interface_id, uint16_t listen_port, uint8_t service_options, 00022 coap_service_security_start_cb *start_ptr, coap_service_security_done_cb *coap_security_done_cb) 00023 { 00024 return 0; 00025 } 00026 00027 void coap_service_delete(int8_t service_id) 00028 { 00029 } 00030 00031 int16_t coap_service_virtual_socket_recv(int8_t service_id, uint8_t source_addr_ptr[static 16], uint16_t port, uint8_t *data_ptr, uint16_t data_len) 00032 { 00033 return 0; 00034 } 00035 00036 int16_t coap_service_virtual_socket_set_cb(int8_t service_id, coap_service_virtual_socket_send_cb *send_method_ptr) 00037 { 00038 return 0; 00039 } 00040 00041 int8_t coap_service_register_uri(int8_t service_id, const char *uri, uint8_t allowed_method, coap_service_request_recv_cb *request_recv_cb) 00042 { 00043 return 0; 00044 } 00045 00046 int8_t coap_service_unregister_uri(int8_t service_id, const char *uri) 00047 { 00048 return 0; 00049 } 00050 00051 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, sn_coap_content_format_e cont_type, const uint8_t *payload_ptr, uint16_t payload_len, coap_service_response_recv *request_response_cb) 00052 { 00053 return 0; 00054 } 00055 00056 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) 00057 { 00058 return 0; 00059 } 00060 00061 uint32_t coap_service_get_internal_timer_ticks(void) 00062 { 00063 return 1; 00064 }
Generated on Tue Jul 12 2022 13:15:38 by
