nsp specific components for the NSP version of the impact endpoint

Dependents:   mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet mbed_nsp_endpoint_nxp

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Fri Sep 26 05:55:44 2014 +0000
Parent:
27:d94e3c9c37b2
Commit message:
updates for new logger

Changed in this revision

MBEDEndpoint.cpp Show annotated file Show diff for this revision Revisions of this file
MBEDEndpoint.h Show annotated file Show diff for this revision Revisions of this file
NSPLightDimmerAction.cpp Show annotated file Show diff for this revision Revisions of this file
NSPLightDimmerAction.h Show annotated file Show diff for this revision Revisions of this file
NSPLightResourceFactory.cpp Show annotated file Show diff for this revision Revisions of this file
NSPLightResourceFactory.h Show annotated file Show diff for this revision Revisions of this file
NSPLightSwitchAction.cpp Show annotated file Show diff for this revision Revisions of this file
NSPLightSwitchAction.h Show annotated file Show diff for this revision Revisions of this file
NSPResource.cpp Show annotated file Show diff for this revision Revisions of this file
NSPResource.h Show annotated file Show diff for this revision Revisions of this file
NSPResourceFactory.cpp Show annotated file Show diff for this revision Revisions of this file
NSPResourceFactory.h Show annotated file Show diff for this revision Revisions of this file
NSPTransport.cpp Show annotated file Show diff for this revision Revisions of this file
NSPTransport.h Show annotated file Show diff for this revision Revisions of this file
NSPio.cpp Show annotated file Show diff for this revision Revisions of this file
NSPio.h Show annotated file Show diff for this revision Revisions of this file
--- a/MBEDEndpoint.cpp	Fri Sep 19 18:29:39 2014 +0000
+++ b/MBEDEndpoint.cpp	Fri Sep 26 05:55:44 2014 +0000
@@ -38,7 +38,7 @@
  extern void closedown(int code);
   
  // default constructor
- MBEDEndpoint::MBEDEndpoint(ErrorHandler *error_handler,void *transport,void *status_reporter,void *extra) : BaseClass(error_handler,NULL) {
+ MBEDEndpoint::MBEDEndpoint(Logger *logger,void *transport,void *status_reporter,void *extra) : BaseClass(logger,NULL) {
      bool success = true;
      this->m_preferences = NULL;
      this->m_instance_id = 0;
--- a/MBEDEndpoint.h	Fri Sep 19 18:29:39 2014 +0000
+++ b/MBEDEndpoint.h	Fri Sep 26 05:55:44 2014 +0000
@@ -66,7 +66,7 @@
         void              *m_status_reporter;                               // Status Reporter
         
     public:
-        MBEDEndpoint(ErrorHandler *error_handler,void *transport,void *status_reporter,void *extra);
+        MBEDEndpoint(Logger *logger,void *transport,void *status_reporter,void *extra);
         virtual ~MBEDEndpoint();
         ResourceFactory *initResourceFactory();
         void run();
--- a/NSPLightDimmerAction.cpp	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPLightDimmerAction.cpp	Fri Sep 26 05:55:44 2014 +0000
@@ -22,7 +22,7 @@
  NSPLightDimmerAction *_dimmerAction = NULL;
  
  // default constructor
- NSPLightDimmerAction::NSPLightDimmerAction(ErrorHandler *error_handler,Light *light) : LightDimmerAction(error_handler,light) {
+ NSPLightDimmerAction::NSPLightDimmerAction(Logger *logger,Light *light) : LightDimmerAction(logger,light) {
      _dimmerAction = this;
  }
  
--- a/NSPLightDimmerAction.h	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPLightDimmerAction.h	Fri Sep 26 05:55:44 2014 +0000
@@ -24,7 +24,7 @@
 
 class NSPLightDimmerAction : public LightDimmerAction {        
     public:
-        NSPLightDimmerAction(ErrorHandler *error_handler,Light *light);
+        NSPLightDimmerAction(Logger *logger,Light *light);
         virtual ~NSPLightDimmerAction(); 
         
         void dim(int value);       
--- a/NSPLightResourceFactory.cpp	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPLightResourceFactory.cpp	Fri Sep 26 05:55:44 2014 +0000
@@ -67,7 +67,7 @@
  #include "MBEDEndpoint.h"
  
  // default constructor
- NSPLightResourceFactory::NSPLightResourceFactory(ErrorHandler *error_handler,void *endpoint) : NSPResourceFactory(error_handler,endpoint) {
+ NSPLightResourceFactory::NSPLightResourceFactory(Logger *logger,void *endpoint) : NSPResourceFactory(logger,endpoint) {
  }
  
  // default destructor
--- a/NSPLightResourceFactory.h	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPLightResourceFactory.h	Fri Sep 26 05:55:44 2014 +0000
@@ -27,7 +27,7 @@
 
 class NSPLightResourceFactory : public NSPResourceFactory {             
     public:
-        NSPLightResourceFactory(ErrorHandler *error_handler,void *endpoint);
+        NSPLightResourceFactory(Logger *logger,void *endpoint);
         virtual ~NSPLightResourceFactory();
                       
         virtual void createResources(char *endpoint_name);
--- a/NSPLightSwitchAction.cpp	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPLightSwitchAction.cpp	Fri Sep 26 05:55:44 2014 +0000
@@ -22,7 +22,7 @@
  NSPLightSwitchAction *_switchAction = NULL;
  
  // default constructor
- NSPLightSwitchAction::NSPLightSwitchAction(ErrorHandler *error_handler,Light *light) : LightSwitchAction(error_handler,light) {
+ NSPLightSwitchAction::NSPLightSwitchAction(Logger *logger,Light *light) : LightSwitchAction(logger,light) {
     _switchAction = this;
  }
  
--- a/NSPLightSwitchAction.h	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPLightSwitchAction.h	Fri Sep 26 05:55:44 2014 +0000
@@ -24,7 +24,7 @@
 
 class NSPLightSwitchAction : public LightSwitchAction {        
     public:
-        NSPLightSwitchAction(ErrorHandler *error_handler,Light *light);
+        NSPLightSwitchAction(Logger *logger,Light *light);
         virtual ~NSPLightSwitchAction(); 
         
         void on();
--- a/NSPResource.cpp	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPResource.cpp	Fri Sep 26 05:55:44 2014 +0000
@@ -25,7 +25,7 @@
  #include "NSPio.h"
  
  // default constructor
- NSPResource::NSPResource(ErrorHandler *error_handler,char *ep_name,char *name,char *value,void *cb,void *resource_ptr,sn_grs_resource_acl_e acl,char *interface, char *resource) : Resource(error_handler,ep_name,name,value,cb)  {
+ NSPResource::NSPResource(Logger *logger,char *ep_name,char *name,char *value,void *cb,void *resource_ptr,sn_grs_resource_acl_e acl,char *interface, char *resource) : Resource(logger,ep_name,name,value,cb)  {
      this->m_resource_ptr = resource_ptr;
      this->m_acl = acl;
      this->m_interface = interface;
--- a/NSPResource.h	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPResource.h	Fri Sep 26 05:55:44 2014 +0000
@@ -38,7 +38,7 @@
         sn_grs_resource_acl_e  m_acl;
         
     public:
-        NSPResource(ErrorHandler *error_handler,char *ep_name,char *name,char *value,void *cb,void *cb_ptr,sn_grs_resource_acl_e acl,char *interface, char *resource);
+        NSPResource(Logger *logger,char *ep_name,char *name,char *value,void *cb,void *cb_ptr,sn_grs_resource_acl_e acl,char *interface, char *resource);
         virtual ~NSPResource();
                         
         virtual void plumb(char *endpoint_name,char *name);
--- a/NSPResourceFactory.cpp	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPResourceFactory.cpp	Fri Sep 26 05:55:44 2014 +0000
@@ -23,7 +23,7 @@
  #include "NSPResource.h"
       
  // default constructor
- NSPResourceFactory::NSPResourceFactory(ErrorHandler *error_handler,void *endpoint) : ResourceFactory(error_handler,endpoint) {
+ NSPResourceFactory::NSPResourceFactory(Logger *logger,void *endpoint) : ResourceFactory(logger,endpoint) {
      memset(this->m_endpoint_name,0,PERSONALITY_NAME_LEN+1);
      this->m_resource_ptr = NULL;
  }
--- a/NSPResourceFactory.h	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPResourceFactory.h	Fri Sep 26 05:55:44 2014 +0000
@@ -22,8 +22,8 @@
 // Base Class
 #include "ResourceFactory.h"
 
-// ErrorHandler support
-#include "ErrorHandler.h"
+// Logger support
+#include "Logger.h"
 
 // NSDL library support
 #include "nsdl_support.h"
@@ -37,7 +37,7 @@
         void *m_resource_ptr;
           
     public:
-        NSPResourceFactory(ErrorHandler *error_handler,void *endpoint);
+        NSPResourceFactory(Logger *logger,void *endpoint);
         virtual ~NSPResourceFactory();
                       
         virtual void createResources(char *endpoint_name) = 0;
--- a/NSPTransport.cpp	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPTransport.cpp	Fri Sep 26 05:55:44 2014 +0000
@@ -29,7 +29,7 @@
  #include "MBEDEndpoint.h"
  
  // default constructor
- NSPTransport::NSPTransport(ErrorHandler *error_handler,void *endpoint) : Transport(error_handler,endpoint) {
+ NSPTransport::NSPTransport(Logger *logger,void *endpoint) : Transport(logger,endpoint) {
       this->initNSP();
  }
  
--- a/NSPTransport.h	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPTransport.h	Fri Sep 26 05:55:44 2014 +0000
@@ -26,7 +26,7 @@
     private:
         
     public:
-         NSPTransport(ErrorHandler *error_handler,void *endpoint);
+         NSPTransport(Logger *logger,void *endpoint);
         virtual ~NSPTransport();
         
         virtual bool connect();
--- a/NSPio.cpp	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPio.cpp	Fri Sep 26 05:55:44 2014 +0000
@@ -19,7 +19,7 @@
  #include "NSPio.h"
  
  // default constructor
- NSPio::NSPio(ErrorHandler *error_handler,Resource *resource,sn_send_observation_t obs_sender) : MBEDio(error_handler,resource) {
+ NSPio::NSPio(Logger *logger,Resource *resource,sn_send_observation_t obs_sender) : MBEDio(logger,resource) {
      this->m_obs_sender = obs_sender;
      this->m_mbed_io = NULL;
  }
--- a/NSPio.h	Fri Sep 19 18:29:39 2014 +0000
+++ b/NSPio.h	Fri Sep 26 05:55:44 2014 +0000
@@ -31,7 +31,7 @@
         MBEDio                *m_mbed_io;
         
      public:
-        NSPio(ErrorHandler *error_handler,Resource *resource,sn_send_observation_t obs_sender);
+        NSPio(Logger *logger,Resource *resource,sn_send_observation_t obs_sender);
         NSPio(MBEDio *mbed_io,sn_send_observation_t obs_sender);
         virtual ~NSPio();