AllWize Library
configuration.sample.h
1 /*
2 
3 Configuration file
4 
5 */
6 
7 #pragma once
8 
9 //------------------------------------------------------------------------------
10 // General configuration
11 //------------------------------------------------------------------------------
12 
13 #define DEBUG_SERIAL Serial
14 
15 //------------------------------------------------------------------------------
16 // WiFi credentials
17 //------------------------------------------------------------------------------
18 
19 #define WIFI_SSID "..."
20 #define WIFI_PASSWORD "..."
21 
22 //------------------------------------------------------------------------------
23 // Radio module connections
24 //------------------------------------------------------------------------------
25 
26 #define RESET_PIN 14
27 #define RX_PIN 12
28 #define TX_PIN 13
29 
30 //------------------------------------------------------------------------------
31 // Wize configuration
32 //------------------------------------------------------------------------------
33 
34 #define WIZE_CHANNEL CHANNEL_04
35 #define WIZE_POWER POWER_20dBm
36 #define WIZE_DATARATE DATARATE_2400bps
37 
38 //------------------------------------------------------------------------------
39 // MQTT configuration
40 //------------------------------------------------------------------------------
41 
42 #define MQTT_HOST "192.168.2.2"
43 #define MQTT_PORT 1883
44 #define MQTT_USER ""
45 #define MQTT_PASS ""
46 #define MQTT_QOS 2
47 #define MQTT_RETAIN 0
48 #define MQTT_TOPIC "device/%s/field_%u" // UID, field#