alarm and data transfer

Adrien3 years ago

hi,
According to the documentation, when an alarm is generated, it is passed on as an attribute in the position. is it like the attributes "attributes" and "id"? or is it in "attributes"?

{
  "position":{
    "id":0,
    "attributes":{
      "priority":0,
      "sat":12,
      "event":0,
      "ignition":false,
      "motion":false,
      "workMode":0,
      "rssi":5,
      "io200":0,
      "gpsStatus":1,
      "di1":0,
      "out1":false,
      "di2":0,
      "di3":0,
      "out2":false,
      "io29":0,
      "io20":0,
      "io22":0,
      "io23":0,
      "io113":0,
      "pdop":0.9,
      "hdop":0.6000000000000001,
      "power":12.354000000000001,
      "io24":0,
      "io205":263,
      "io206":20010,
      "battery":0,
      "io68":0,
      "adc1":87,
      "io13":0,
      "axisX":703,
      "axisY":-667,
      "axisZ":-222,
      "io6":87,
      "io15":0,
      "temp5":0,
      "temp6":0,
      "temp7":0,
      "temp8":0,
      "io86":0,
      "io104":0,
      "io106":0,
      "io108":0,
      "operator":62402,
      "tripOdometer":0,
      "odometer":125839,
      "io12":0,
      "temp1":0,
      "temp2":0,
      "temp3":0,
      "io75":0,
      "di4":0,
      "io5":0,
      "io11":8923702200,
      "io76":0,
      "io77":0,
      "io79":0,
      "io71":0,
      "io238":0,
      "io14":9384181605,
      "distance":0,
      "totalDistance":111243.99,
      "ip":"41.202.219.78"
    },
    "deviceId":13,
    "type":null,
    "protocol":"teltonika",
    "serverTime":"2022-01-11T16:19:09.044+00:00",
    "deviceTime":"2022-01-11T16:19:06.000+00:00",
    "fixTime":"2022-01-11T16:19:06.000+00:00",
    "outdated":false,
    "valid":true,
    "latitude":4.05436,
    "longitude":9.6958283,
    "altitude":14,
    "speed":0,
    "course":1,
    "address":null,
    "accuracy":0,
    "network":{
      "radioType":"gsm",
      "considerIp":false,
      "cellTowers":[
        {
          "cellId":263,
          "locationAreaCode":20010,
          "mobileCountryCode":624,
          "mobileNetworkCode":2
        }
      ]
    },
    "udpOrTCP":"tcp",
    "ip":"41.202.219.78",
    "port":5027
  },
  "device":{
    "id":13,
    "attributes":[
      
    ],
    "groupId":0,
    "name":"359633107620838",
    "uniqueId":"359633107620838",
    "status":"online",
    "lastUpdate":"2022-01-11T16:19:09.044+00:00",
    "positionId":428562,
    "geofenceIds":[
      
    ],
    "phone":null,
    "model":null,
    "contact":null,
    "category":null,
    "disabled":false
  }
}