sandbox / mbed-client-classic

Fork of mbed-client-classic by Christopher Haster

Committer:
geky
Date:
Thu Mar 03 18:48:23 2016 +0000
Revision:
4:0c58f5786538
Created rudimentary implementation of m2mconectionhandler for the nsapi

Who changed what in which revision?

UserRevisionLine numberNew contents of line
geky 4:0c58f5786538 1 /*
geky 4:0c58f5786538 2 * Copyright (c) 2015 ARM Limited. All rights reserved.
geky 4:0c58f5786538 3 * SPDX-License-Identifier: Apache-2.0
geky 4:0c58f5786538 4 * Licensed under the Apache License, Version 2.0 (the License); you may
geky 4:0c58f5786538 5 * not use this file except in compliance with the License.
geky 4:0c58f5786538 6 * You may obtain a copy of the License at
geky 4:0c58f5786538 7 *
geky 4:0c58f5786538 8 * http://www.apache.org/licenses/LICENSE-2.0
geky 4:0c58f5786538 9 *
geky 4:0c58f5786538 10 * Unless required by applicable law or agreed to in writing, software
geky 4:0c58f5786538 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
geky 4:0c58f5786538 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
geky 4:0c58f5786538 13 * See the License for the specific language governing permissions and
geky 4:0c58f5786538 14 * limitations under the License.
geky 4:0c58f5786538 15 */
geky 4:0c58f5786538 16 #include "mbed-client-classic/m2mnetwork.h"
geky 4:0c58f5786538 17
geky 4:0c58f5786538 18 static NetworkInterface *interface = 0;
geky 4:0c58f5786538 19
geky 4:0c58f5786538 20 M2MNetwork::M2MNetwork(NetworkInterface *iface)
geky 4:0c58f5786538 21 {
geky 4:0c58f5786538 22 interface = iface;
geky 4:0c58f5786538 23 }
geky 4:0c58f5786538 24
geky 4:0c58f5786538 25 M2MNetwork::~M2MNetwork()
geky 4:0c58f5786538 26 {
geky 4:0c58f5786538 27 }
geky 4:0c58f5786538 28
geky 4:0c58f5786538 29 NetworkInterface *M2MNetwork::getInterface()
geky 4:0c58f5786538 30 {
geky 4:0c58f5786538 31 return interface;
geky 4:0c58f5786538 32 }