dev
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdFactoryDefault.cpp@18:44972ed0654d, 2017-10-10 (annotated)
- Committer:
- alphaemmeo
- Date:
- Tue Oct 10 09:33:43 2017 +0000
- Revision:
- 18:44972ed0654d
- Parent:
- 14:f9a77400b622
testInit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mike Fiore |
1:e52ae6584f1c | 1 | #include "CmdFactoryDefault.h" |
Mike Fiore |
1:e52ae6584f1c | 2 | |
Mike Fiore |
14:f9a77400b622 | 3 | CmdFactoryDefault::CmdFactoryDefault() : Command("Reset Factory Defaults", "AT&F", "Reset current configuration to factory defaults", "NONE") |
Mike Fiore |
1:e52ae6584f1c | 4 | { |
Mike Fiore |
1:e52ae6584f1c | 5 | } |
Mike Fiore |
1:e52ae6584f1c | 6 | |
Mike Fiore |
1:e52ae6584f1c | 7 | |
Mike Fiore |
1:e52ae6584f1c | 8 | uint32_t CmdFactoryDefault::action(std::vector<std::string> args) |
Mike Fiore |
1:e52ae6584f1c | 9 | { |
Mike Fiore |
14:f9a77400b622 | 10 | CommandTerminal::Dot()->resetConfig(); |
Mike Fiore |
14:f9a77400b622 | 11 | CommandTerminal::Dot()->resetNetworkSession(); |
Mike Fiore |
1:e52ae6584f1c | 12 | return 0; |
Mike Fiore |
1:e52ae6584f1c | 13 | } |
Mike Fiore |
1:e52ae6584f1c | 14 |