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_PORT_BAUDRATE 115200
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 // NTP configuration
40 //------------------------------------------------------------------------------
41 
42 #define NTP_SERVER "pool.ntp.org" // Default NTP server
43 #define NTP_SYNC_INTERVAL 10 // NTP initial check every 10 seconds
44 #define NTP_UPDATE_INTERVAL 1800 // NTP check every 30 minutes
45 #define NTP_TIMEZONE_OFFSET 0 // timezone GMT
46 #define NTP_DAYLIGHT_OFFSET 0 // No daylight (minutes)
47 
48 //------------------------------------------------------------------------------
49 // LoRaWAN configuration
50 //------------------------------------------------------------------------------
51 
52 #define LORAWAN_SERVER IPAddress(52,169,76,203)
53 #define LORAWAN_PORT 1700
54 #define LORAWAN_LATITUDE 41.60129
55 #define LORAWAN_LONGITUDE 2.62262
56 #define LORAWAN_ALTITUDE 10
57 #define LORAWAN_GATEWAY_TYPE "ALWIZE G1"
58 #define LORAWAN_EMAIL "xose.perez@gmail.com"
59 #define LORAWAN_DESCRIPTION "xp-gw05-allwize"