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 OmniWheels by
AT_CellularStack_stub.cpp
00001 /* 00002 * Copyright (c) 2017, Arm Limited and affiliates. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #include "AT_CellularStack.h" 00019 #include "CellularUtil.h" 00020 #include "CellularLog.h" 00021 00022 using namespace mbed_cellular_util; 00023 00024 AT_CellularStack::AT_CellularStack(ATHandler &atHandler, int cid, nsapi_ip_stack_t stack_type) : _at(atHandler), _socket(NULL), _cid(cid), _stack_type(stack_type) 00025 { 00026 } 00027 00028 AT_CellularStack::~AT_CellularStack() 00029 { 00030 } 00031 00032 const char *AT_CellularStack::get_ip_address() 00033 { 00034 return NULL; 00035 } 00036 00037 nsapi_error_t AT_CellularStack::socket_open(nsapi_socket_t *handle, nsapi_protocol_t proto) 00038 { 00039 return NSAPI_ERROR_OK ; 00040 } 00041 00042 nsapi_error_t AT_CellularStack::socket_close(nsapi_socket_t handle) 00043 { 00044 return NSAPI_ERROR_OK ; 00045 } 00046 00047 nsapi_error_t AT_CellularStack::socket_bind(nsapi_socket_t handle, const SocketAddress &addr) 00048 { 00049 return NSAPI_ERROR_OK ; 00050 } 00051 00052 nsapi_error_t AT_CellularStack::socket_listen(nsapi_socket_t handle, int backlog) 00053 { 00054 return NSAPI_ERROR_OK ; 00055 } 00056 00057 nsapi_error_t AT_CellularStack::socket_connect(nsapi_socket_t handle, const SocketAddress &addr) 00058 { 00059 return NSAPI_ERROR_OK ; 00060 } 00061 00062 nsapi_error_t AT_CellularStack::socket_accept(void *server, void **socket, SocketAddress *addr) 00063 { 00064 return NSAPI_ERROR_OK ; 00065 } 00066 00067 nsapi_size_or_error_t AT_CellularStack::socket_send(nsapi_socket_t handle, const void *data, unsigned size) 00068 { 00069 return NSAPI_ERROR_OK ; 00070 } 00071 00072 nsapi_size_or_error_t AT_CellularStack::socket_sendto(nsapi_socket_t handle, const SocketAddress &addr, const void *data, unsigned size) 00073 { 00074 return NSAPI_ERROR_OK ; 00075 } 00076 00077 nsapi_size_or_error_t AT_CellularStack::socket_recv(nsapi_socket_t handle, void *data, unsigned size) 00078 { 00079 return NSAPI_ERROR_OK ; 00080 } 00081 00082 nsapi_size_or_error_t AT_CellularStack::socket_recvfrom(nsapi_socket_t handle, SocketAddress *addr, void *buffer, unsigned size) 00083 { 00084 return NSAPI_ERROR_OK ; 00085 } 00086 00087 void AT_CellularStack::socket_attach(nsapi_socket_t handle, void (*callback)(void *), void *data) 00088 { 00089 } 00090
Generated on Fri Jul 22 2022 04:53:45 by
 1.7.2
 1.7.2 
    