mbed Connector Interface simplification API on top of mbed-client

Fork of mbedConnectorInterfaceV3 by Doug Anson

NOTE:

This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!

Revision:
27:b8aaf7dc7023
Parent:
18:996d04762f32
Child:
33:1d0b855df5a5
--- a/mbed-connector-interface/Resource.h	Sun Jun 12 03:18:25 2016 +0000
+++ b/mbed-connector-interface/Resource.h	Tue Jun 14 04:01:34 2016 +0000
@@ -42,6 +42,17 @@
 template <typename InnerType> class Resource
 {
 public:
+    // Available Resource Types
+    typedef enum {
+        STRING,
+        INTEGER,
+        FLOAT,
+        BOOLEAN,
+        OPAQUE,
+        TIME,
+        OBJLINK
+    }ResourceType;
+    
     /**
     Default constructor
     @param logger input the Logger instance this Resource is a part of
@@ -126,8 +137,9 @@
 
     /**
     Bind resource to endpoint
+    @param ep input pointer to the Endpoint instance
     */
-    virtual M2MObject *bind(void *p) = 0;
+    virtual void bind(void *ep) = 0;
 
     // access the logger()
     Logger *logger() {