webinterface.h 395 B

12345678910111213141516171819202122232425
  1. /*
  2. web interface
  3. */
  4. #pragma once
  5. #include "options.h"
  6. #include <Arduino.h>
  7. #include "version.h"
  8. typedef struct {
  9. String name;
  10. String value;
  11. } json_table_t;
  12. class WebInterface {
  13. public:
  14. void init(void);
  15. void update(void);
  16. private:
  17. bool initialised = false;
  18. // first 16 bytes for flashing, skip buffer in updater
  19. uint8_t lead_bytes[16];
  20. uint8_t lead_len;
  21. };