This is a tutorial on how to test LoRa The Things Network (TTN) with the new LoRa-E5 mini board. The CPU is a STM32WLE5JC.
The AT codes to program the device are:
AT+ID
AT+ID=DevAddr,”Device Address“
AT+ID=DevEui,”Join EUI”
AT+ID=AppEui=“Join EUI”
AT+KEY=APPSKEY,”APPSKEY“
AT+KEY=NWKSKEY,”NWKSKEY“
AT+DR=EU868
AT+MODE=“LWABP”
AT+DR=7
AT+CH=NUM,0
AT+MSG=“Hi from Carlo“
The uplink payload Javascript is:
function Decoder(bytes, port) {
// Decode an uplink message from a buffer
// (array) of bytes to an object of fields.
var decoded = {};
if (port==8){
return {
Text: String.fromCharCode.apply(null, bytes)
};
}
return decoded;
}
Hope you enjoy the video.
#lorawan #ttn #thethingsnetwork #seeed #lora-e5 #stm32 #arduino #esp32