Hi, i'm trying to make the POST request from my tracker to get into the flespi channel.
and i'm struggling with the json fields, seems that flespi can't recognize my nested fields. Here is my complete body of the data:
POST / HTTP/1.1
Content-Type: application/json; charset=utf-8
Accept: text/html,text/xml,text/json,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Host: gw.flespi.io:30277
Content-Length: 781
Connection: Close
{"SerNo":242515,"IMEI":"356726108538364","ICCID":"8944478800000158037","ProdId":62,"FW":"62.2.2.20","Records":[{"SeqNo":48931,"Reason":9,"DateUTC":"2022-04-04 10:48:00","Fields":[{"GpsUTC":"2022-04-04 10:46:46","Lat":45.7849676,"Long":3.1397099,"Alt":343,"Spd":0,"SpdAcc":5,"Head":93,"PDOP":21,"PosAcc":23,"GpsStat":3,"FType":0},{"DIn":6,"DOut":0,"DevStat":66,"FType":2},{"AnalogueData":{"1":7253,"3":2036,"4":31,"5":7125,"6":9892},"FType":6}]},{"SeqNo":48932,"Reason":11,"DateUTC":"2022-04-04 10:48:06","Fields":[{"GpsUTC":"2022-04-04 10:48:06","Lat":45.7849366,"Long":3.1396623,"Alt":334,"Spd":0,"SpdAcc":3,"Head":99,"PDOP":15,"PosAcc":15,"GpsStat":3,"FType":0},{"DIn":6,"DOut":0,"DevStat":66,"FType":2},{"AnalogueData":{"1":7253,"3":2015,"4":31,"5":7129,"6":9892},"FType":6}]}]}
It succeeds to retrieve the fields of the first level of the JSON like "IMEI", "SerNo" but I can't rerieve the latitude or longitude data that are nested;
I tried to put
parameter name: position.latitude (or just latitude)
parameter value path: Records/Fields/Lat (or Records/Fields/0/Lat )
but it doesn't work, I get nothing recognized
Can you help me find out what('s wrong?
thanks
Marc