CommandLine.h 627 B

123456789101112131415161718192021222324252627282930
  1. #ifndef CommandLine_h
  2. #define CommandLine_h
  3. #include "MenuFunctions.h"
  4. #include "WiFiScan.h"
  5. #include "Display.h"
  6. extern MenuFunctions menu_function_obj;
  7. extern WiFiScan wifi_scan_obj;
  8. extern Display display_obj;
  9. // Commands
  10. const char PROGMEM SCANAP_CMD[] = "scanap";
  11. const char PROGMEM SNIFF_BEACON_CMD[] = "sniffbeacon";
  12. const char PROGMEM STOPSCAN_CMD[] = "stopscan";
  13. const char PROGMEM CLEARAP_CMD[] = "clearap";
  14. class CommandLine {
  15. private:
  16. String getSerialInput();
  17. void parseCommand(String input);
  18. public:
  19. CommandLine();
  20. void RunSetup();
  21. void main(uint32_t currentTime);
  22. };
  23. #endif