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: mbed mbedConnectorInterface mbedEndpointNetwork
Diff: mbedEndpointResources/MoistureResource.h
- Revision:
- 7:5cd21d0ff21f
- Parent:
- 5:abbad7ddc804
diff -r f546bfcc4a9e -r 5cd21d0ff21f mbedEndpointResources/MoistureResource.h
--- a/mbedEndpointResources/MoistureResource.h Fri May 01 23:02:24 2015 +0000
+++ b/mbedEndpointResources/MoistureResource.h Fri May 01 23:50:34 2015 +0000
@@ -18,6 +18,7 @@
MoistureResource(const Logger *logger,const char *name,const bool observable = false) : DynamicResource(logger,name,"Moisture", SN_GRS_GET_ALLOWED,observable) {
}
+ //Returns a float value from 0.0 to 1.0
virtual string get() {
char moisture_lvl[7];
memset(moisture_lvl,0,7);
