add mqtt, decouple i2c and sensor

This commit is contained in:
2025-11-10 22:40:21 +06:00
parent 80478c7400
commit fe6cc2ebb9
8 changed files with 466 additions and 231 deletions

View File

@@ -20,11 +20,9 @@
#define MEM_SIZE (4 * 1024)
// Pbuf options
#define PBUF_POOL_SIZE 6
#define PBUF_POOL_SIZE 16
#define PBUF_POOL_BUFSIZE 590
#define MEMP_NUM_PBUF 6 // default 16
// TCP options
#define LWIP_TCP 1
#define TCP_MSS 536
@@ -34,6 +32,7 @@
#define LWIP_UDP 1
#define MEMP_NUM_UDP_PCB 3 // # of concurrent UDP "connections"
#define MEMP_NUM_SYS_TIMEOUT 8
#define LWIP_ICMP 1
#define LWIP_DHCP 1
@@ -41,6 +40,10 @@
#define LWIP_HTTPD_FS_SUPPORT 1
#define HTTPD_USE_CUSTOM_FSDATA 1
// MQTT
#define LWIP_MQTT_CLIENT 1
#define MQTT_OUTPUT_RINGBUF_SIZE 512
#define LWIP_NETIF_HOSTNAME 1
#define LWIP_NETIF_LINK_CALLBACK 1
#define LWIP_NETIF_STATUS_CALLBACK 1