mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 21:34:08 +01:00
cleanup mqtt bridge example
This commit is contained in:
29
src/examples/meshMqttBridge/config.h
Normal file
29
src/examples/meshMqttBridge/config.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef __BRIDGE_CONFIG__
|
||||
#define __BRIDGE_CONFIG__
|
||||
|
||||
// Scheduler config
|
||||
#define _TASK_SLEEP_ON_IDLE_RUN
|
||||
#define _TASK_STD_FUNCTION
|
||||
|
||||
// Chip config
|
||||
#define SERIAL_BAUD_RATE 115200
|
||||
#define STARTUP_DELAY 3000
|
||||
|
||||
// Mesh config
|
||||
#define STATION_MODE 1
|
||||
#define WIFI_CHANNEL 11
|
||||
#define MESH_PORT 5555
|
||||
#define MESH_PREFIX "WirelosContraption"
|
||||
#define MESH_PASSWORD "somethingSneaky"
|
||||
#define STATION_SSID "Th1ngs4P"
|
||||
#define STATION_PASSWORD "th3r31sn0sp00n"
|
||||
#define HOSTNAME "mqtt-bridge"
|
||||
#define MESH_DEBUG_TYPES ERROR | STARTUP | CONNECTION
|
||||
|
||||
// Bridge config
|
||||
#define MQTT_CLIENT_NAME HOSTNAME
|
||||
#define MQTT_BROKER "iot.eclipse.org"
|
||||
#define MQTT_PORT 1883
|
||||
#define MQTT_TOPIC_ROOT "mesh"
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user