FF1705 support added
Dependencies: libxDot-dev-mbed5-deprecated ISL29011
Fork of Dot-Examples by
Dot-Examples rev. 31:7ec180e84cb6 have been tested with xdot-library 3.0.0-19-gb6c0ba2 and mbed-os-5.6.2
Diff: examples/src/manual_example.cpp
- Revision:
- 9:72d3203279b2
- Parent:
- 8:e667f4a507b1
- Child:
- 12:ec9768677cea
--- a/examples/src/manual_example.cpp Fri Oct 07 15:31:03 2016 -0500
+++ b/examples/src/manual_example.cpp Fri Oct 07 15:48:23 2016 -0500
@@ -61,6 +61,12 @@
// to provision your Dot with a 3rd party gateway, see the gateway or network provider documentation
update_manual_config(network_address, network_session_key, data_session_key, frequency_sub_band, public_network, ack);
+ // save changes to configuration
+ logInfo("saving configuration");
+ if (!dot->saveConfig()) {
+ logError("failed to save configuration");
+ }
+
// restore the saved session if the dot woke from deepsleep mode
// useful to use with deepsleep because session info is otherwise lost when the dot enters deepsleep
if (dot->getStandbyFlag()) {
