ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers coap_service_api_stub.c Source File

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 coap_msg_handler_t *coap_service_handle = NULL;
00022 
00023 int8_t coap_service_initialize(int8_t interface_id, uint16_t listen_port, uint8_t service_options,
00024                                  coap_service_security_start_cb *start_ptr, coap_service_security_done_cb *coap_security_done_cb)
00025 {
00026     return 0;
00027 }
00028 
00029 void coap_service_delete(int8_t service_id)
00030 {
00031 }
00032 
00033 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)
00034 {
00035     return 0;
00036 }
00037 
00038 int16_t coap_service_virtual_socket_set_cb(int8_t service_id, coap_service_virtual_socket_send_cb *send_method_ptr)
00039 {
00040     return 0;
00041 }
00042 
00043 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)
00044 {
00045     return 0;
00046 }
00047 
00048 int8_t coap_service_unregister_uri(int8_t service_id, const char *uri)
00049 {
00050     return 0;
00051 }
00052 
00053 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)
00054 {
00055     return 0;
00056 }
00057 
00058 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)
00059 {
00060     return 0;
00061 }
00062 
00063 uint32_t coap_service_get_internal_timer_ticks(void)
00064 {
00065     return 1;
00066 }
00067 
00068 uint16_t coap_service_id_find_by_socket(int8_t socket_id)
00069 {
00070     return 1;
00071 }