lmic arduino
1.0.0
لم تعد هذه المكتبة تحتفظ بعد الآن ، يرجى إلقاء نظرة على https://github.com/ngraziano/lmicpp-arduino ومثال: examples/balise
تم اختباره مع Arduino Pro Mini و RFM95 على ترددات EU868.
العمل مع منصة.
في دليل src ، قم بإنشاء ملف يسمى lorakeys.h Wich يحتوي على المفاتيح المعلنة في الشبكة (لـ exemple https://www.thethingsnetwork.org)
exemple من الملف:
#include <Arduino.h>
// This EUI must be in little-endian format, so least-significant-byte
// first. When copying an EUI from ttnctl output, this means to reverse
// the bytes. For TTN issued EUIs the last bytes should be 0xD5, 0xB3,
// 0x70.
static const uint8_t PROGMEM APPEUI [ 8 ] = { 0 xXX , 0 xXX , 0 xXX , 0 xXX , 0 xXX , 0xD5 , 0xB3 , 0x70 };
// This should also be in little endian format, see above.
static const uint8_t PROGMEM DEVEUI [ 8 ] = { 0x02 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 };
// This key should be in big endian format (or, since it is not really a
// number but a block of memory, endianness does not really apply). In
// practice, a key taken from ttnctl can be copied as-is.
// The key shown here is the semtech default key.
static const uint8_t PROGMEM APPKEY [ 16 ] = { 0x2B , 0x7E , 0x15 , 0x16 , 0x28 , 0xAE , 0xD2 , 0xA6 , 0xAB , 0xF7 , 0x15 , 0x88 , 0x09 , 0xCF , 0x4F , 0x3C }; في main.cpp استبدل محتوى do_send() بالبيانات التي تريد إرسالها.
يتم توفير معظم الملفات المصدر في هذا المستودع بموجب ترخيص Eclipse Public V1.0. تتوفر بعض رمز AES ضمن ترخيص MIT. الرجوع إلى كل ملف مصدر فردي لمزيد من التفاصيل.