AllWize Library
configuration.h
Go to the documentation of this file.
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 "daoiz"
20 #define WIFI_PASSWORD "calamento"
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 "io.adafruit.com"
43 //#define MQTT_PORT 1883
44 //#define MQTT_USER "allwize"
45 //#define MQTT_PASS "d4e04dafe407440c95a20bd8fd7f9ab9"
46 
47 #define MQTT_HOST "192.168.1.100"
48 #define MQTT_PORT 1883
49 //#define MQTT_USER "allwize"
50 //#define MQTT_PASS "1757a66bd0aa421282a20087a7325dc3"
51 
52 #define MQTT_QOS 2
53 #define MQTT_RETAIN 0
54 #define MQTT_TOPIC "team/%u/field_%u" // CI, field#
55 
56 // http://io.adafruit.com
57 // user: allwize
58 // pass: Browse7