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.
m2minterfaceimpl_stub.cpp
00001 /* 00002 * Copyright (c) 2015 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #include "m2minterfaceimpl_stub.h" 00017 #include "common_stub.h" 00018 00019 u_int8_t m2minterfaceimpl_stub::int_value; 00020 bool m2minterfaceimpl_stub::bool_value; 00021 00022 void m2minterfaceimpl_stub::clear() 00023 { 00024 int_value = 0; 00025 bool_value = false; 00026 } 00027 00028 M2MInterfaceImpl::M2MInterfaceImpl(M2MInterfaceObserver& observer, 00029 const String &, 00030 const String &, 00031 const int32_t, 00032 const uint16_t, 00033 const String &, 00034 M2MInterface::BindingMode mode, 00035 M2MInterface::NetworkStack stack, 00036 const String &) 00037 : _observer(observer), 00038 _current_state(0), 00039 _max_states( STATE_MAX_STATES ), 00040 _event_generated(false), 00041 _event_data(NULL), 00042 _nsdl_interface(*this), 00043 _queue_sleep_timer(*this), 00044 _retry_timer(*this), 00045 _connection_handler(*this, NULL, mode, stack) 00046 { 00047 } 00048 00049 M2MInterfaceImpl::~M2MInterfaceImpl() 00050 { 00051 } 00052 void M2MInterfaceImpl::bootstrap(M2MSecurity *) 00053 { 00054 } 00055 00056 void M2MInterfaceImpl::cancel_bootstrap() 00057 { 00058 } 00059 00060 void M2MInterfaceImpl::register_object(M2MSecurity *, const M2MObjectList &) 00061 { 00062 } 00063 00064 void M2MInterfaceImpl::update_registration(M2MSecurity *, const uint32_t) 00065 { 00066 } 00067 void M2MInterfaceImpl::update_registration(M2MSecurity *, 00068 const M2MObjectList &, 00069 const uint32_t) 00070 { 00071 } 00072 00073 void M2MInterfaceImpl::unregister_object(M2MSecurity*) 00074 { 00075 } 00076 00077 void M2MInterfaceImpl::set_queue_sleep_handler(callback_handler) 00078 { 00079 00080 } 00081 00082 void M2MInterfaceImpl::set_platform_network_handler(void *) 00083 { 00084 00085 } 00086 00087 void M2MInterfaceImpl::set_random_number_callback(random_number_cb) 00088 { 00089 00090 } 00091 00092 void M2MInterfaceImpl::set_entropy_callback(entropy_cb) 00093 { 00094 00095 } 00096 00097 void M2MInterfaceImpl::coap_message_ready(uint8_t *, 00098 uint16_t , 00099 sn_nsdl_addr_s *) 00100 { 00101 00102 } 00103 00104 void M2MInterfaceImpl::client_registered(M2MServer*) 00105 { 00106 00107 } 00108 00109 void M2MInterfaceImpl::registration_error(uint8_t, bool) 00110 { 00111 00112 } 00113 00114 void M2MInterfaceImpl::client_unregistered() 00115 { 00116 00117 } 00118 00119 void M2MInterfaceImpl::bootstrap_done(M2MSecurity *) 00120 { 00121 00122 } 00123 00124 void M2MInterfaceImpl::bootstrap_wait(M2MSecurity *) 00125 { 00126 00127 } 00128 00129 void M2MInterfaceImpl::bootstrap_error() 00130 { 00131 00132 } 00133 00134 void M2MInterfaceImpl::coap_data_processed() 00135 { 00136 00137 } 00138 00139 void M2MInterfaceImpl::data_available(uint8_t*, 00140 uint16_t, 00141 const M2MConnectionObserver::SocketAddress &) 00142 { 00143 00144 } 00145 00146 void M2MInterfaceImpl::socket_error(uint8_t, bool) 00147 { 00148 00149 } 00150 00151 void M2MInterfaceImpl::address_ready(const M2MConnectionObserver::SocketAddress &, 00152 M2MConnectionObserver::ServerType, 00153 const uint16_t) 00154 { 00155 00156 } 00157 00158 void M2MInterfaceImpl::data_sent() 00159 { 00160 } 00161 00162 void M2MInterfaceImpl::timer_expired(M2MTimerObserver::Type) 00163 { 00164 00165 } 00166 00167 void M2MInterfaceImpl::registration_updated(const M2MServer &) 00168 { 00169 } 00170 00171 void M2MInterfaceImpl::value_updated(M2MBase *) 00172 { 00173 00174 } 00175
Generated on Tue Jul 12 2022 21:20:27 by
1.7.2