dhcp attempts

This commit is contained in:
2024-10-13 05:32:44 +06:00
parent ec9dcc76f7
commit 480a4a1ca5
12 changed files with 329 additions and 63 deletions

25
include/config.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef CONFIG_H
#define CONFIG_H
#include <stdint.h>
#define DEBUG_MODE 1
#define DNS_RUN_INTERVAL_MS 100
// #define LOCAL_PORT 5000
// MQTT configuration
#define CLIENT_ID "ch32_node"
#define MQTT_TARGET_IP {192, 168, 102, 147}
#define MQTT_TARGET_PORT 1883
#define MQTT_KEEP_ALIVE_INTERVAL 60
#define MQTT_TX_BUFFER_SIZE 128
#define MQTT_RX_BUFFER_SIZE 128
#define MQTT_COMMAND_TIMEOUT_MS 1000
#define SUB_TOPIC "listen/world"
#define PUB_TOPIC "hello/world"
#endif // CONFIG_H