Missing Influxdb Measurements

Hi,

I’m sending data to an influxdb and seem to be missing some measurements.
The data is decoded and the object is visible in the device live data:
object: {
altitude:12
battery:91
latitude:51.44890213012695
length:16
longitude:-2.5988900661468506
mode:1
pressure:1008.8
sats:5
speed:1
temperature:29.82
}

however in the influxbd the only measurements are:

show measurements
name: measurements
name


device_frmpayload_data_battery
device_frmpayload_data_mode
device_frmpayload_data_pressure
device_frmpayload_data_temperature
device_uplink

Any ideas on what to check/ do etc?

EDIT: Update - the decode function logic was at fault. The wrong part of an if…else statement was being called.