use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
source/ConnectionStatusInterface.cpp@90:b738617379a6, 2016-11-28 (annotated)
- Committer:
- Maggie17
- Date:
- Mon Nov 28 15:52:56 2016 +0000
- Revision:
- 90:b738617379a6
- Parent:
- 46:62da4ce20276
first release
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 27:b8aaf7dc7023 | 1 | /** |
ansond | 27:b8aaf7dc7023 | 2 | * @file ConnectionStatusInterface.cpp |
ansond | 27:b8aaf7dc7023 | 3 | * @brief ConnectionStatusInterface |
ansond | 27:b8aaf7dc7023 | 4 | * @author Doug Anson |
ansond | 27:b8aaf7dc7023 | 5 | * @version 1.0 |
ansond | 27:b8aaf7dc7023 | 6 | * @see |
ansond | 27:b8aaf7dc7023 | 7 | * |
ansond | 27:b8aaf7dc7023 | 8 | * Copyright (c) 2014 |
ansond | 27:b8aaf7dc7023 | 9 | * |
ansond | 27:b8aaf7dc7023 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
ansond | 27:b8aaf7dc7023 | 11 | * you may not use this file except in compliance with the License. |
ansond | 27:b8aaf7dc7023 | 12 | * You may obtain a copy of the License at |
ansond | 27:b8aaf7dc7023 | 13 | * |
ansond | 27:b8aaf7dc7023 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
ansond | 27:b8aaf7dc7023 | 15 | * |
ansond | 27:b8aaf7dc7023 | 16 | * Unless required by applicable law or agreed to in writing, software |
ansond | 27:b8aaf7dc7023 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
ansond | 27:b8aaf7dc7023 | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
ansond | 27:b8aaf7dc7023 | 19 | * See the License for the specific language governing permissions and |
ansond | 27:b8aaf7dc7023 | 20 | * limitations under the License. |
ansond | 27:b8aaf7dc7023 | 21 | */ |
ansond | 33:1d0b855df5a5 | 22 | |
ansond | 33:1d0b855df5a5 | 23 | // Class Support |
ansond | 27:b8aaf7dc7023 | 24 | #include "mbed-connector-interface/ConnectionStatusInterface.h" |
ansond | 27:b8aaf7dc7023 | 25 | |
ansond | 27:b8aaf7dc7023 | 26 | // Connector namespace |
ansond | 27:b8aaf7dc7023 | 27 | namespace Connector { |
ansond | 27:b8aaf7dc7023 | 28 | |
ansond | 27:b8aaf7dc7023 | 29 | // Default constructor |
ansond | 27:b8aaf7dc7023 | 30 | ConnectionStatusInterface::ConnectionStatusInterface() { |
ansond | 27:b8aaf7dc7023 | 31 | } |
ansond | 27:b8aaf7dc7023 | 32 | |
ansond | 27:b8aaf7dc7023 | 33 | // Copy constructor |
ansond | 38:bb6d2be4d54c | 34 | ConnectionStatusInterface::ConnectionStatusInterface(ConnectionStatusInterface & /* csi */) { |
ansond | 27:b8aaf7dc7023 | 35 | } |
ansond | 27:b8aaf7dc7023 | 36 | |
ansond | 27:b8aaf7dc7023 | 37 | // Destructor |
ansond | 27:b8aaf7dc7023 | 38 | ConnectionStatusInterface::~ConnectionStatusInterface() { |
ansond | 27:b8aaf7dc7023 | 39 | } |
ansond | 27:b8aaf7dc7023 | 40 | |
ansond | 46:62da4ce20276 | 41 | // Registered |
ansond | 46:62da4ce20276 | 42 | void ConnectionStatusInterface::object_registered(void * /* ep */,void * /* security */,void * /*data */) { |
ansond | 46:62da4ce20276 | 43 | } |
ansond | 46:62da4ce20276 | 44 | |
ansond | 46:62da4ce20276 | 45 | // Re-registered |
ansond | 46:62da4ce20276 | 46 | void ConnectionStatusInterface::registration_updated(void * /* ep */,void * /* security */,void * /*data */) { |
ansond | 46:62da4ce20276 | 47 | } |
ansond | 46:62da4ce20276 | 48 | |
ansond | 46:62da4ce20276 | 49 | // Beginning de-registration |
ansond | 46:62da4ce20276 | 50 | void ConnectionStatusInterface::begin_object_unregistering(void * /* ep */) { |
ansond | 46:62da4ce20276 | 51 | } |
ansond | 46:62da4ce20276 | 52 | |
ansond | 46:62da4ce20276 | 53 | // De-registered |
ansond | 46:62da4ce20276 | 54 | void ConnectionStatusInterface::object_unregistered(void * /* ep */,void * /* data */) { |
ansond | 46:62da4ce20276 | 55 | } |
ansond | 46:62da4ce20276 | 56 | |
ansond | 46:62da4ce20276 | 57 | // Bootstrapped |
ansond | 46:62da4ce20276 | 58 | void ConnectionStatusInterface::bootstrapped(void * /* ep */,void * /* data */) { |
ansond | 46:62da4ce20276 | 59 | } |
ansond | 46:62da4ce20276 | 60 | |
ansond | 46:62da4ce20276 | 61 | // Value Updated |
ansond | 46:62da4ce20276 | 62 | void ConnectionStatusInterface::value_updated(void * /* ep */,void * /* data */,int /* type */) { |
ansond | 46:62da4ce20276 | 63 | } |
ansond | 46:62da4ce20276 | 64 | |
ansond | 27:b8aaf7dc7023 | 65 | } // Connector namespace |