123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- #if GATEWAYNODE==1
- #define _DEVADDR { 0xAA, 0xAA, 0xAA, 0xAA }
- #define _APPSKEY { 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB }
- #define _NWKSKEY { 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC }
- #define _SENSOR_INTERVAL 300
- #define _GPS 1
- #define _BATTERY 1
- #endif
- struct wpas {
- char login[32];
- char passw[64];
- };
- wpas wpa[] = {
- { "" , "" },
- { "yourSSID", "yourPassword" },
- { "Your2SSID", "your2Password" }
- };
- #if _TRUSTED_NODES >= 1
- struct nodex {
- uint32_t id;
- char nm[32];
- };
- nodex nodes[] = {
- { 0x260116BD , "lora-34 PIR node" },
- { 0x26011152 , "lora-35 temp+humi node" },
- { 0x2601148C , "lora-36 test node" },
- { 0x00000000 , "lora-00 well known sensor" }
- };
- #endif
- #if _LOCALSERVER==1
- struct codex {
- uint32_t id;
- char nm[32];
- uint8_t nwkKey[16];
- uint8_t appKey[16];
- };
- codex decodes[] = {
- { 0xAAAAAAAA , "lora-EE",
- { 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB },
- { 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC }
- },
- { 0xBBBBBBBB , "lora-FF",
- { 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB },
- { 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC }
- },
- { 0x00000000 , "lora-00",
- { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
- { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
- }
- };
- #endif
- #if !defined(CFG_noassert)
- #define ASSERT(cond) if(!(cond)) gway_failed(__FILE__, __LINE__)
- #else
- #define ASSERT(cond)
- #endif
|