How to decode data which is recieved at LNS(chirpstack)

hi i used I-cube-Lrwan code example on B-L072Z-LRWAN1(stm32) board i.e LoRaWAN_End_node.
I got data on my chirpstack


the data it sent temp & VDDA.

my proplem is how to decode the data.

My code snippet is below(my assumption):
{

latitude = sensor_data.latitude;

longitude = sensor_data.longitude;

AppData.Buffer[i++] = GetBatteryLevel();        /* 1 (very low) to 254 (fully charged) */

AppData.Buffer[i++] = (uint8_t)((latitude >> 16) & 0xFF);

AppData.Buffer[i++] = (uint8_t)((latitude >> 8) & 0xFF);

AppData.Buffer[i++] = (uint8_t)(latitude & 0xFF);

AppData.Buffer[i++] = (uint8_t)((longitude >> 16) & 0xFF);

AppData.Buffer[i++] = (uint8_t)((longitude >> 8) & 0xFF);

AppData.Buffer[i++] = (uint8_t)(longitude & 0xFF);

AppData.Buffer[i++] = (uint8_t)((altitudeGps >> 8) & 0xFF);

AppData.Buffer[i++] = (uint8_t)(altitudeGps & 0xFF);

}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.