Nathanaël Semhoun / Mbed OS mdot_commonsense

Dependencies:   libmDot-mbed5

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Config.h Source File

Config.h

00001 #ifndef __LORACONFIG__
00002 #define __LORACONFIG__
00003 
00004 #include "LoRa.h"
00005 #include "Sensors.h"
00006 
00007 static LoRaConfig_t LoRaConfig = {
00008     "vertical-m2m", // Network name
00009     "LFW2KjYXh7xTl93SRhRc", // Network key pass
00010     5, //Frequence sub band
00011     mDot::SF_8,
00012     300, // Delay for sending a keep alive
00013     30, // Minimum delay between message
00014 };
00015 
00016 static SensorsConfig_t sensorsConfig = {
00017     PA_0, // D3 - DHT11
00018     PA_1, // D6 - Motion sensor
00019     PB_0, // A1 - Light sensor
00020     PA_2, // D1 - Switch #1
00021     PA_11,// D7 - Switch #2
00022     5, // Sensor update period in second
00023 };
00024 
00025 static int ForceUpdatePeriod = 900;
00026 
00027 #endif