Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
176:3c86e0cf7e21
Parent:
175:d17460899bc9
Child:
177:fa93eacedd3d
--- a/main.cpp	Thu Aug 28 21:08:34 2014 +0000
+++ b/main.cpp	Fri Aug 29 03:41:01 2014 +0000
@@ -144,7 +144,8 @@
     error_handler = new ErrorHandler(&pc,&lcd);
     
 #if SF_STATUS_REPORTING
-    sf_status_reporter = (void *)new StatusReporter(error_handler);
+    StatusReporter status_reporter(error_handler);
+    sf_status_reporter = (void *)&status_reporter;
 #endif
 
 #ifdef CELLULAR_NETWORK