Advertisement
FlyFar

Settings.h

Jul 17th, 2023
866
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | Cybersecurity | 0 0
  1. #pragma once
  2.  
  3. #include "Arduino.h"
  4. #include <EEPROM.h>
  5. #define ssidLenAdr 0
  6. #define ssidAdr 1
  7. #define passwordLenAdr 33
  8. #define passwordAdr 34
  9. #define channelAdr 66
  10. #define hiddenAdr 67
  11. #define autoExecAdr 68
  12. #define autostartLenAdr 69
  13. #define autostartAdr 70
  14.  
  15. #define debug false
  16.  
  17. class Settings{
  18. public:
  19.     Settings();
  20.     void load();
  21.     void save();
  22.     void reset();
  23.     void print();
  24.  
  25.     int ssidLen;
  26.     char ssid[32];
  27.  
  28.     int passwordLen;
  29.     char password[32];
  30.  
  31.     int autostartLen;
  32.     char autostart[32];
  33.  
  34.     uint8_t channel;
  35.     uint8_t hidden;
  36.     uint8_t autoExec;
  37.    
  38. };
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement