ESP32 mit WIFI und MQTT rx und tx
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
769B

  1. /*
  2. * eepromsettings.h
  3. *
  4. * Created on: 14.05.2020
  5. * Author: agr
  6. */
  7. #ifndef EEPROMSETTINGS_H_
  8. #define EEPROMSETTINGS_H_
  9. #include <Arduino.h>
  10. #include <WiFi.h>
  11. #include <PubSubClient.h>
  12. #define RESET_PIN 9 //Connect a button to this PIN. If the button is hold, an the device is turned on the default ethernet settings are restored.
  13. void read_EEPROM_Settings();
  14. #ifdef DEBUG
  15. void print_EEPROM_Settings();
  16. #endif
  17. /* START Network section #######################################################################################################################################
  18. * Code for setting up network connection
  19. */
  20. unsigned long last_dhcp_renew;
  21. byte dhcp_state;
  22. void renewDHCP(int interval);
  23. void setupNetwork() ;
  24. #endif /* EEPROMSETTINGS_H_ */