Skip to content
Snippets Groups Projects
Commit 53f3a034 authored by thiebolt's avatar thiebolt
Browse files

added esp32 flag for NTP from DHCP server

parent 54ab4384
No related branches found
No related tags found
No related merge requests found
......@@ -31,10 +31,10 @@ neOSensor.build.partitions=default
# DISABLE_ADC_CAL: flag to disable esp32 ADC advanced calibration
# DISABLE_AP_PASSWD: flag to disable access point password (i.e free to connect to)
# [apr.21] MQTT specs sets through API (buffer_size, timeout ...)
neOSensor.build.defines=-DNEOSENSOR_BOARD -DDISABLE_SSL -DDISABLE_AP_PASSWD
#neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256 -DDISABLE_SSL -DDISABLE_AP_PASSWD
#neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256 -DLED=2 -DDISABLE_SSL -DDISABLE_AP_PASSWD
#neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256
neOSensor.build.defines=-DNEOSENSOR_BOARD -DDISABLE_SSL -DDISABLE_AP_PASSWD -DLWIP_DHCP_GET_NTP_SRV=1
#neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256 -DDISABLE_SSL -DDISABLE_AP_PASSWD -DLWIP_DHCP_GET_NTP_SRV=1
#neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256 -DLED=2 -DDISABLE_SSL -DDISABLE_AP_PASSWD -DLWIP_DHCP_GET_NTP_SRV=1
#neOSensor.build.defines=-DNEOSENSOR_BOARD -DMQTT_KEEPALIVE=60 -DMQTT_SOCKET_TIMEOUT=60 -DMQTT_MAX_PACKET_SIZE=256 -DLWIP_DHCP_GET_NTP_SRV=1
# upload speed
neOSensor.menu.UploadSpeed.921600=921600
......
......@@ -107,6 +107,7 @@
#define SDA 14 // GPIO14
#define SCL 12 // GPIO12
#elif defined(ESP32)
//#define I2C_FREQ 50000 // default is 100KHz
#define SDA 21
#define SCL 22
#endif
......
......@@ -18,11 +18,8 @@
*
* ---
* TODO:
* - add sntp_cb once available for ESP32
* - check sntp!=IPADDR_ANY works with ESP8266 (line 342)
* - check SYS_LED is working (add -DSYS_LED=2)
* - remove DISABLE_SSL compilation flag
* - AutoConnect lib vs WiFiManager --> have a look to https://github.com/Hieromon/AutoConnect
* - MQTT client --> have a look to https://github.com/xluthi/pulse_counter_esp8266
* - test OTA feature
* - as the number of modules is increasing, implement a list of modules in the setup()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment