Dependencies:   MTS-Serial libmDot mbed-rtos mbed

Fork of mDot_USB_AT_firmware by Hadi Ho

Committer:
ahario
Date:
Wed Oct 19 10:26:54 2016 +0000
Revision:
14:eecf7851d6ff
Parent:
4:666017851052
Update from libmDot has overwritten the orginal main.cpp; ; Main.cpp has been updated again to allow AT command to be accessed via USB

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Mike Fiore 4:666017851052 1 #include "CmdResetStats.h"
Mike Fiore 4:666017851052 2
Mike Fiore 4:666017851052 3 CmdResetStats::CmdResetStats(mDot* dot, mts::MTSSerial& serial)
Mike Fiore 4:666017851052 4 :
Mike Fiore 4:666017851052 5 Command(dot, "Reset Stats", "AT&R", "Reset statistics"),
Mike Fiore 4:666017851052 6 _serial(serial), _dot(dot) {
Mike Fiore 4:666017851052 7 _help = std::string(text()) + ": " + std::string(desc());
Mike Fiore 4:666017851052 8 }
Mike Fiore 4:666017851052 9
Mike Fiore 4:666017851052 10 uint32_t CmdResetStats::action(std::vector<std::string> args) {
Mike Fiore 4:666017851052 11
Mike Fiore 4:666017851052 12 _dot->resetStats();
Mike Fiore 4:666017851052 13
Mike Fiore 4:666017851052 14 return 0;
Mike Fiore 4:666017851052 15 }
Mike Fiore 4:666017851052 16