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.
Dependents: LittleCounter-Example
Diff: BERGCloudMbed.cpp
- Revision:
- 6:79100379d4b4
- Parent:
- 4:5a04c00b5b6f
--- a/BERGCloudMbed.cpp Tue Nov 26 17:45:12 2013 +0000
+++ b/BERGCloudMbed.cpp Wed Apr 16 14:38:12 2014 +0000
@@ -168,5 +168,21 @@
return true;
}
+bool BERGCloudMbed::pollForCommand(BERGCloudMessageBuffer& buffer, string &commandName)
+{
+ bool result = false;
+ char tmp[31 + 1]; /* +1 for null terminator */
+
+ commandName = ""; /* Empty string */
+ result = pollForCommand(buffer, tmp, sizeof(tmp));
+
+ if (result)
+ {
+ commandName = string(tmp);
+ }
+
+ return result;
+}
+
#endif // #ifdef BERGCLOUD_PACK_UNPACK

