Datacake status pending and error running payload decoder

rakwirelessutem
Thu, 24 Apr 2025 08:11:30 +0000
TTN Network and Services

Hello there,

I am having trouble with integrating Datacake as webhook with my TTN. It is a simple project I have 2 sensors, 3 axis accelerometer and shtc3 (temp and humidity sensor) sending packets to TTN. I have done a payload decoder in ttn itself, here is the uplink payload formatter

function Decoder(bytes, port) {
if ((port === 1 || port === 2) && bytes.length >= 11) { // Modified this line
return {
accel_x: ((bytes[1] << 8) | bytes[2]) / 100, // 0.001g resolution
accel_y: ((bytes[3] << 8) | bytes[4]) / 100,
accel_z: ((bytes[5] << 8) | bytes[6]) / 100,
temperature: ((bytes[7] << 8) | bytes[8]) / 100, // 0.01°C resolution
humidity: ((bytes[9] << 8) | bytes[10]) / 100 // 0.01% resolution
};
}
return {};
}

upon testing the desired output is also achieved,
{
“accel_x”: 0.04,
“accel_y”: 0,
“accel_z”: 1.02,
“humidity”: 80,
“temperature”: 25.13
}

now, at the the event detail of data cake I am facing a problem which is the readings are being pushed tot he webhook but it keeps saying this

Now, to make matter even more confusing I dont know why now my data cake debug is not working resulting pending status at my TTN too. I am keep sending packets, receiving and decoding well in TTN but at my debug there is no response. Since, my TTN is already decoding the payload I assumed I wouldn’t need to have a nother payload decoder at the datacake configuration. One thing for sure I am clear is that my TTN is working as expected but the integration is not set up well. What am I missing? What could be the issue here. Please enlighten me.

1 post - 1 participant