@bwooce thanks ! I have created an app at TTN. I had also register my device on it.
I have change this following defines on Commissioning.h file
Blockquote
#define LORAWAN_APPLICATION_EUI
#define LORAWAN_APPLICATION_KEY
#define LORAWAN_NWKSKEY
#define LORAWAN_APPSKEY
Should I change the LORAWAN_NETWORK_ID ?
In the LoRaMac-definitions.h I have change the frequency as following:
Blockquote
//#define USE_BAND_868
#define USE_BAND_915
I can see that my device send some msg on the traffic, after creating an app I can see the data coming. However the data on the application side give me that:
“payload not provided”
I’m using the OTAA example. I have create a simple decoder as following:
Blockquote
function Decoder(bytes, Port)
{
var teste0 = bytes[0];
var teste1 = bytes[10];
var result={
“sensor”:{
“teste0”: teste0,
“teste1”: teste1,
}
}
return result;
}
As I’m sending this:
Blockquote
#elif defined( USE_BAND_915 ) || defined( USE_BAND_915_HYBRID )
AppData[0] = ‘1’;
AppData[1] = ‘2’;
AppData[2] = ‘3’;
AppData[3] = ‘4’;
AppData[4] = ‘5’;
AppData[5] = ‘6’;
AppData[6] = ‘7’;
AppData[7] = ‘8’;
AppData[8] = ‘9’;
AppData[9] = ‘0’;
AppData[10] = ‘a’;
#endif
I would like to see the ‘0’ and ‘a’ as output of the decoder. As you (@BDM) have tested this example, could you or anyone help me to find the source of my problem?