Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027 C12832 EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: EmulatedResourceFactory.h
- Revision:
- 148:b09187a0fa77
- Parent:
- 42:46cc1641800b
--- a/EmulatedResourceFactory.h Wed Mar 19 21:37:52 2014 +0000
+++ b/EmulatedResourceFactory.h Wed Mar 19 22:09:43 2014 +0000
@@ -32,6 +32,9 @@
typedef void (*resourceInitializer)(Resource *);
class EmulatedResourceFactory : public ResourceFactory {
+ private:
+ char m_gps_coords[PREFERENCE_VALUE_LEN+1];
+
public:
EmulatedResourceFactory(ErrorHandler *error_handler,void *endpoint);
virtual ~EmulatedResourceFactory();
@@ -44,6 +47,10 @@
virtual void createResource(char *endpoint_name,char *name,char *value,void *cb);
virtual void createResource(char *name,char *value);
void createResource(char *name,char *value,void *io,void *notused);
+
+ private:
+ void initGPSCoords();
+ char *getGPSCoords();
};