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: libmDot-Custom MTS-Serial
Fork of mDot_AT_firmware_CUSTOM by
To change channel plans replace AS923 with AU915, EU868, KR920 or US915 on line 15
#define CHANNEL_PLAN CP_AS923
CommandTerminal/CmdWriteProtectedConfig.cpp@29:15b59b827ac7, 2017-03-23 (annotated)
- Committer:
- jreiss
- Date:
- Thu Mar 23 20:40:54 2017 +0000
- Revision:
- 29:15b59b827ac7
- Parent:
- 16:6b851a5e4219
update libmDot-Custom
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Jason Reiss |
16:6b851a5e4219 | 1 | #include "CmdWriteProtectedConfig.h" |
| Jason Reiss |
16:6b851a5e4219 | 2 | |
| Jason Reiss |
16:6b851a5e4219 | 3 | CmdWriteProtectedConfig::CmdWriteProtectedConfig() : |
| Jason Reiss |
16:6b851a5e4219 | 4 | Command("Write Protected Config", "AT&WP", "Write protected config to flash (DeviceId and Frequency Band)", "NONE") |
| Jason Reiss |
16:6b851a5e4219 | 5 | { |
| Jason Reiss |
16:6b851a5e4219 | 6 | } |
| Jason Reiss |
16:6b851a5e4219 | 7 | |
| Jason Reiss |
16:6b851a5e4219 | 8 | uint32_t CmdWriteProtectedConfig::action(std::vector<std::string> args) |
| Jason Reiss |
16:6b851a5e4219 | 9 | { |
| Jason Reiss |
16:6b851a5e4219 | 10 | if (!CommandTerminal::Dot()->saveProtectedConfig()) { |
| Jason Reiss |
16:6b851a5e4219 | 11 | CommandTerminal::setErrorMessage("Failed to save to flash"); |
| Jason Reiss |
16:6b851a5e4219 | 12 | return 1; |
| Jason Reiss |
16:6b851a5e4219 | 13 | } |
| Jason Reiss |
16:6b851a5e4219 | 14 | |
| Jason Reiss |
16:6b851a5e4219 | 15 | return 0; |
| Jason Reiss |
16:6b851a5e4219 | 16 | } |
