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 5
28 #define TX_PIN 4
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 // TheThings.IO configuration
40 //------------------------------------------------------------------------------
41 
42 #define MQTT_HOST "mqtt.thethings.io"
43 #define MQTT_PORT 1883
44 #define MQTT_QOS 2
45 #define MQTT_RETAIN 0
46 #define MQTT_TOPIC "v2/things/%s" // placeholder for the TOKEN
47 
48 const char THETHINGSIO_CONFIG[] = R"raw([
49  {"id": "8", "token": "VRom0kqQABLsDx3SjrX-9CcsK26vtnvKZGUcGcQhOCU", "keys": ["temperature"] }
50 ])raw";
const char THETHINGSIO_CONFIG[]
Definition: configuration.h:48