dhcp attempts
This commit is contained in:
25
include/config.h
Normal file
25
include/config.h
Normal 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
|
||||
Reference in New Issue
Block a user