ESP32 mit WIFI und MQTT rx und tx
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526272829303132333435363738
  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_ */