Invalid data not being forwarded

aditya.achmad 2 years ago

Hi,
Thankyou for this great library.

I have a question, why invalid data not being forwarded to my server? I already set filter.invalid to false, I even set filter.enable to false.

<entry key='filter.enable'>false</entry>
<entry key='filter.invalid'>false</entry>
Anton Tananaev 2 years ago
  1. What do you mean by invalid data?
  2. What other filtering config do you have enabled?
aditya.achmad 2 years ago
  1. valid field is set to false
  2. filtering config:
<entry key='filter.enable'>false</entry>
<entry key='filter.invalid'>false</entry>
<entry key='filter.zero'>true</entry>
<entry key='filter.duplicate'>true</entry>
<entry key='filter.future'>600</entry>
<entry key='filter.maxSpeed'>100</entry>
<entry key='filter.skipAttributes'>alarm,temp1,adc1</entry>
<entry key='filter.relative'>false</entry>
Anton Tananaev 2 years ago

Well, the filter.skipAttributes might explain it. Why didn't you mention it in the original comment?

aditya.achmad 2 years ago

But attribute field doesnt contain alarm, temp1, or adc1.

{"status":68,"ignition":false,"charge":true,"blocked":false,"batteryLevel":100,"rssi":4,"raw":"78780a13440604000200a66c610d0a","distance":0.0,"totalDistance":1.180949067E7,"motion":true,"sat":15,"hours":433220000}

Below is full row of the data:

{
  "id": 817093363,
  "protocol": "gt06",
  "deviceid": 21,
  "servertime": "2023-11-20T10:17:53.504Z",
  "devicetime": "2023-11-20T10:17:53.504Z",
  "fixtime": "2023-11-19T22:17:35.000Z",
  "valid": false,
  "latitude": ...,
  "longitude": ...,
  "altitude": 0,
  "speed": 8.099355000000001,
  "course": 117,
  "address": ...,
  "attributes": "{\"status\":68,\"ignition\":false,\"charge\":true,\"blocked\":false,\"batteryLevel\":100,\"rssi\":4,\"raw\":\"78780a13440604000200a66c610d0a\",\"distance\":0.0,\"totalDistance\":1.180949067E7,\"motion\":true,\"sat\":15,\"hours\":433220000}",
  "accuracy": 0,
  "network": "null",
  "geofenceids": "null"
}