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.
Diff: mDot.h
- Revision:
- 135:69d2d725ea1e
- Parent:
- 134:e5ad4bd55ce5
- Child:
- 136:d7d7093d4754
diff -r e5ad4bd55ce5 -r 69d2d725ea1e mDot.h
--- a/mDot.h Wed Feb 14 13:46:25 2018 -0600
+++ b/mDot.h Fri Feb 16 14:27:32 2018 -0600
@@ -9,6 +9,9 @@
#include <vector>
#include <map>
#include <string>
+#if defined(TARGET_XDOT_L151CC) && defined(GEMALTO_SE)
+#include "SE_LoRaWan.h"
+#endif
class mDotEvent;
class LoRaConfig;
@@ -333,6 +336,28 @@
uint8_t setChannelPlan(lora::ChannelPlan* plan);
+#if defined(TARGET_XDOT_L151CC) && defined(GEMALTO_SE)
+ /**
+ * Pass in an SE_LoRaWan object to the library. If not passed in, object code is omitted from build
+ * @param SE_LoRaWan object
+ */
+ int32_t setGemaltoSE(SE_LoRaWan* se);
+ /**
+ * Enable or disable the secure element. With secure element in place, AppKey is secured in Gemalto secure element
+ * @param enable/disable
+ */
+ int32_t setSecureElement(const bool enable);
+ /**
+ * Query secure element enable/disable setting
+ * @returns true if secure element is enabled even if setGemaltoSE has not been called
+ */
+ bool getSecureElement();
+ /**
+ * Query for both enable and that the secure element has been successfully instantiated
+ * @returns true if enabled and instantiated
+ */
+ bool isSecureElement();
+#endif
lora::Settings* getSettings();
/**