|
1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * eepromsettings.h
- *
- * Created on: 14.05.2020
- * Author: agr
- */
-
- #ifndef EEPROMSETTINGS_H_
- #define EEPROMSETTINGS_H_
-
- #include <Arduino.h>
-
- #include <WiFi.h>
- #include <PubSubClient.h>
-
- #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.
-
-
- void read_EEPROM_Settings();
-
- #ifdef DEBUG
- void print_EEPROM_Settings();
- #endif
-
-
- /* START Network section #######################################################################################################################################
- * Code for setting up network connection
- */
- unsigned long last_dhcp_renew;
- byte dhcp_state;
-
- void renewDHCP(int interval);
-
- void setupNetwork() ;
-
-
-
- #endif /* EEPROMSETTINGS_H_ */
|