Hello Folks,
I am using the Wisblock 4631 development Kit and using The Things Network for testing.
I am successfully able to send the WisBlock a JSON message over MQTT but the data I am sending is not being decoded properly on the Wisblock side the way I thought it should be.
In TTN, I selected the device, selected Messaging, selected Downlink, selected JSON and Pressed the Schedule Downlink Button after entering the following JSON text.
{"downlinks":[{"f_port": 1,"frm_payload":"AQ==","priority": "NORMAL"}]}
The base64 value of 01 (AQ==) is being passed
I can see the Serialprintf statement being triggered, and my loop is being triggered, but my data size is 0 and the data is blank,
LoRa Packet received on port 1, size:0, rssi:-33, snr:11, data:
Here is the lorawan_rx_handler being used.
void lorawan_rx_handler(lmh_app_data_t *app_data)
{
Serial.printf("LoRa Packet received on port %d, size:%d, rssi:%d, snr:%d, data:%s\n",
app_data->port, app_data->buffsize, app_data->rssi, app_data->snr, app_data->buffer);
int i = 0;
while (i < 20)
{
flash_green_led(2,100,0);
flash_blue_led(2,100,0);
++i;
}
}
Any Ideas? Do I have to send the data differently? I will keep searching but thought someone here will show the errors of my ways Thanks for your help.