NodePrefs.h 602 B

123456789101112131415161718192021222324252627
  1. #ifndef NODE_PREFS_H
  2. #define NODE_PREFS_H
  3. #include <cstdint> // For uint8_t, uint32_t
  4. #define TELEM_MODE_DENY 0
  5. #define TELEM_MODE_ALLOW_FLAGS 1 // use contact.flags
  6. #define TELEM_MODE_ALLOW_ALL 2
  7. struct NodePrefs { // persisted to file
  8. float airtime_factor;
  9. char node_name[32];
  10. float freq;
  11. uint8_t sf;
  12. uint8_t cr;
  13. uint8_t reserved1;
  14. uint8_t manual_add_contacts;
  15. float bw;
  16. uint8_t tx_power_dbm;
  17. uint8_t telemetry_mode_base;
  18. uint8_t telemetry_mode_loc;
  19. uint8_t telemetry_mode_env;
  20. float rx_delay_base;
  21. uint32_t ble_pin;
  22. };
  23. #endif // NODE_PREFS_H