42 lines
800 B
C
42 lines
800 B
C
#pragma once
|
|
|
|
// MQTT settings (no TLS)
|
|
//
|
|
// If you use a hostname, DNS must work on your network.
|
|
// For simplest setup, use an IPv4 string like "192.168.1.10".
|
|
|
|
#ifndef MQTT_BROKER_HOST
|
|
#define MQTT_BROKER_HOST "172.29.0.179"
|
|
#endif
|
|
|
|
#ifndef MQTT_BROKER_PORT
|
|
#define MQTT_BROKER_PORT 8883
|
|
#endif
|
|
|
|
#ifndef MQTT_CLIENT_ID
|
|
#define MQTT_CLIENT_ID "pico-usb-host-modbus"
|
|
#endif
|
|
|
|
// Publish topic for readings
|
|
#ifndef MQTT_TOPIC_READINGS
|
|
#define MQTT_TOPIC_READINGS "pico-usb-host-modbus/modbus/readings"
|
|
#endif
|
|
|
|
// Optional auth (set to NULL if unused)
|
|
#ifndef MQTT_USERNAME
|
|
#define MQTT_USERNAME "ha"
|
|
#endif
|
|
|
|
#ifndef MQTT_PASSWORD
|
|
#define MQTT_PASSWORD "rNgMmtrYtLjU4rdzbibo"
|
|
#endif
|
|
|
|
// MQTT publish options
|
|
#ifndef MQTT_QOS
|
|
#define MQTT_QOS 0
|
|
#endif
|
|
|
|
#ifndef MQTT_RETAIN
|
|
#define MQTT_RETAIN 0
|
|
#endif
|