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:
- 168:1539ef71d305
- Parent:
- 167:41a25569800c
- Child:
- 169:6ee5d76fc0e7
--- a/EmulatedResourceFactory.cpp Tue Mar 25 03:25:42 2014 +0000
+++ b/EmulatedResourceFactory.cpp Tue Mar 25 03:26:36 2014 +0000
@@ -100,8 +100,8 @@
this->createResource("/gps/int","60");
this->createResource("/gps/fix","1");
this->createResource("/nw/pipaddr","N/A");
- this->createResource("/dev/W","0.1W",&init_wattage,NULL);
- this->createResource("/nw/prssi","-73",&init_rssi,NULL);
+ this->createResource("/dev/W","0.1W",(void *)&init_wattage,NULL);
+ this->createResource("/nw/prssi","-73",(void *)&init_rssi,NULL);
this->createResource("/sen/temp","10.0C",(void *)&init_temperature,NULL);
this->createResource("/dev/t","10.0C",(void *)&init_temperature,NULL);
this->createResource("/sen/V","5.0V",(void *)&init_voltage,NULL);