use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Committer:
ansond
Date:
Fri Nov 04 22:28:13 2016 +0000
Revision:
76:7f55e1c0635d
Parent:
46:62da4ce20276
updated

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 27:b8aaf7dc7023 1 /**
ansond 27:b8aaf7dc7023 2 * @file ConnectionStatusInterface.h
ansond 27:b8aaf7dc7023 3 * @brief ConnectionStatusInterface (header)
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 27:b8aaf7dc7023 22
ansond 33:1d0b855df5a5 23 #ifndef __CONNECTION_STATUS_INTERFACE_H__
ansond 33:1d0b855df5a5 24 #define __CONNECTION_STATUS_INTERFACE_H__
ansond 33:1d0b855df5a5 25
ansond 33:1d0b855df5a5 26 // mbedConnectorInterface configuration
ansond 33:1d0b855df5a5 27 #include "mbed-connector-interface/mbedConnectorInterface.h"
ansond 33:1d0b855df5a5 28
ansond 33:1d0b855df5a5 29 // mbed support
ansond 33:1d0b855df5a5 30 #if defined(MCI_USE_YOTTA)
ansond 33:1d0b855df5a5 31 // mbed support
ansond 33:1d0b855df5a5 32 #include "mbed-drivers/mbed.h"
ansond 33:1d0b855df5a5 33 #else
ansond 33:1d0b855df5a5 34 // mbed support
ansond 33:1d0b855df5a5 35 #include "mbed.h"
ansond 33:1d0b855df5a5 36 #endif
ansond 27:b8aaf7dc7023 37
ansond 27:b8aaf7dc7023 38 // Connector namespace
ansond 27:b8aaf7dc7023 39 namespace Connector {
ansond 27:b8aaf7dc7023 40
ansond 27:b8aaf7dc7023 41 class ConnectionStatusInterface {
ansond 27:b8aaf7dc7023 42 public:
ansond 27:b8aaf7dc7023 43 // Default constructor
ansond 27:b8aaf7dc7023 44 ConnectionStatusInterface();
ansond 27:b8aaf7dc7023 45
ansond 27:b8aaf7dc7023 46 // Copy constructor
ansond 27:b8aaf7dc7023 47 ConnectionStatusInterface(ConnectionStatusInterface &csi);
ansond 27:b8aaf7dc7023 48
ansond 27:b8aaf7dc7023 49 // Destructor
ansond 27:b8aaf7dc7023 50 virtual ~ConnectionStatusInterface();
ansond 27:b8aaf7dc7023 51
ansond 27:b8aaf7dc7023 52 /**
ansond 27:b8aaf7dc7023 53 Registered
ansond 27:b8aaf7dc7023 54 */
ansond 76:7f55e1c0635d 55 virtual void object_registered(void *ep,void *security = NULL,void *data = NULL);
ansond 27:b8aaf7dc7023 56
ansond 27:b8aaf7dc7023 57 /**
ansond 27:b8aaf7dc7023 58 Re-registered
ansond 27:b8aaf7dc7023 59 */
ansond 76:7f55e1c0635d 60 virtual void registration_updated(void *ep,void *security = NULL,void *data = NULL);
ansond 46:62da4ce20276 61
ansond 46:62da4ce20276 62 /**
ansond 46:62da4ce20276 63 Beginning de-registration
ansond 46:62da4ce20276 64 */
ansond 46:62da4ce20276 65 virtual void begin_object_unregistering(void *ep);
ansond 27:b8aaf7dc7023 66
ansond 27:b8aaf7dc7023 67 /**
ansond 27:b8aaf7dc7023 68 De-registered
ansond 27:b8aaf7dc7023 69 */
ansond 46:62da4ce20276 70 virtual void object_unregistered(void *ep,void *data = NULL);
ansond 27:b8aaf7dc7023 71
ansond 27:b8aaf7dc7023 72 /**
ansond 27:b8aaf7dc7023 73 Bootstrapped
ansond 27:b8aaf7dc7023 74 */
ansond 46:62da4ce20276 75 virtual void bootstrapped(void *ep,void *data = NULL);
ansond 27:b8aaf7dc7023 76
ansond 27:b8aaf7dc7023 77 /**
ansond 27:b8aaf7dc7023 78 Value Updated
ansond 27:b8aaf7dc7023 79 */
ansond 46:62da4ce20276 80 virtual void value_updated(void *ep,void *data,int type);
ansond 27:b8aaf7dc7023 81 };
ansond 27:b8aaf7dc7023 82
ansond 27:b8aaf7dc7023 83 } // namespace Connector
ansond 27:b8aaf7dc7023 84
ansond 27:b8aaf7dc7023 85 #endif // __CONNECTION_STATUS_INTERFACE_H__