123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- #if GATEWAYNODE==1
- #define _DEVADDR { 0x33, 0x33, 0x33, 0x33 }
- #define _APPSKEY { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
- #define _NWKSKEY { 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11 }
- #define _SENSOR_INTERVAL 300
- #define _GPS 1
- #define _BATTERY 1
- #endif
- struct wpas {
- char login[32];
- char passw[64];
- };
- wpas wpa[] = {
- { "" , "" },
- { "YourSSID", "YourPassword" },
- { "Livebox-yyy", "xxxxxxxxxxxx"}
- };
- #if _TRUSTED_NODES >= 1
- struct nodex {
- uint32_t id;
- char nm[32];
- };
- nodex nodes[] = {
- { 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[] = {
- { 0x2601148C , "lora-36",
- { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
- { 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11 }
- },
- { 0x00000000 , "lora-00",
- { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
- { 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11 }
- }
- };
- #endif
|