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.cpp
- Revision:
- 149:6da931b7944d
- Parent:
- 148:b09187a0fa77
- Child:
- 151:75b96c3419ae
--- a/EmulatedResourceFactory.cpp Wed Mar 19 22:09:43 2014 +0000
+++ b/EmulatedResourceFactory.cpp Wed Mar 19 23:50:06 2014 +0000
@@ -66,7 +66,7 @@
// initialize our GPS coords
void EmulatedResourceFactory::initGPSCoords() {
memset(this->m_gps_coords,0,PREFERENCE_VALUE_LEN+1);
- MBEDEndpoint *endpoint = (MBEDEndpoint *)this->logger()->getEndpoint();
+ MBEDEndpoint *endpoint = (MBEDEndpoint *)this->m_endpoint;
endpoint->preferences()->getPreference("coords",this->m_gps_coords,PREFERENCE_VALUE_LEN,ENDPOINT_GPS_COORDS);
for(int i=0;i<strlen(this->m_gps_coords);++i) if (this->m_gps_coords[i] == ',') this->m_gps_coords[i] = ' ';
}