lmic arduino
1.0.0
該庫不再維護,請瀏覽https://github.com/ngraziano/lmicppp-arduino和示例: examples/balise
在EU868頻率上使用Arduino Pro Mini和RFM95測試。
與Platformio一起工作。
在src目錄中創建一個名為lorakeys.h的文件。
檔案的典範:
#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公共許可證v1.0提供。某些AES代碼可根據MIT(例如許可證)獲得。有關更多詳細信息,請參閱每個單獨的源文件。