ESP32 mit WIFI und MQTT rx und tx
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

39 linhas
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_ */