Temperature 2

The TEMPERATURE_2 event is used to report data from the second temperature sensor connected to the asset tracker device. It helps monitor environmental or operational conditions based on external sensor input.

**Event Name:**TEMPERATURE_2

Trigger Condition

Subscription to the TEMPERATURE_2 event is mandatory. This event is triggered in real time whenever the asset tracker device receives updated input from the connected temperature sensor.

Example Payload

{
"inputBit7": 0,
"partialUpdate": false,
"inputBit4": 0,
"voiceCallActive": 0,
"inputBit3": 0,
"inputBit6": 0,
"groupId": "c337220c-8672-11e2-9b71-55cae3166848",
"inputBit5": 1,
"type": "EVENT_REPORT_MESSAGE",
"deviceId": "cc34889e-3c23-11ed-8ba0-2b14e7e17f80",
"networkService": 1,
"commStateConnected": 1,
"messageType": "TEMPERATURE_2",
"messageIndex": "2276",
"dimentionFix": 0,
"lastKnownLon": -104.864155,
"inputBit0": 0,
"vendorTypeId": 2,
"inputBit2": 0,
"id": "1c00caa5-9b00-4739-ae41-90e28d4d96d8",
"inputBit1": 1,
"fixStatuslastKnown": 0,
"fixStatusHistoric": 0,
"longitude": -104.864155,
"satellites": 16,
"commStatusAvaliable": 1,
"locationTime": 1663916021000,
"odometer": 0,
"offset": 0,
"virtualTripEnd": false,
"eventIndex": 115,
"assetNo": "",
"fixStatusCorrected": 0,
"insideHOO": true,
"deviceSerial": "4673259224",
"groupName": "Default Group",
"eventInfo": {
"sensorUnit": "CELSIUS",
"sensorValue": 7672789
},
"timeOfFix": 1663916020,
"sensorNames": "",
"lastKnownTime": 1663916021000,
"jmsType": "",
"lastKnownLat": 39.7958738,
"fixQuality": 0,
"unitStatusBit0": 0,
"altitude": 159473,
"vehicleName": "4673259224",
"unitStatusBit2": 0,
"deviceTypeId": 6,
"unitStatusBit1": 0,
"unitStatusBit3": 0,
"storedLocation": false,
"protocolVersionIdChange": true,
"latitude": 39.7958738,
"accumulators": [
"92",
"7672789",
"0"
],
"speed": 0,
"unitStatus": 0,
"fixStatusPredict": 0,
"invalidFix": 0,
"dataService": 1,
"network3G": 0,
"noOfAccums": 3,
"privacyModeEnable": false,
"customerId": 1059,
"fixStatus": 0,
"vehicleId": "cc34889d-3c23-11ed-8ba0-9f41661aaa4d",
"tripNumber": 0,
"lastKnownFixQuality": 0,
"spare": 0,
"roaming": 0,
"heading": 358,
"signalStrength": 65475,
"stateId": 0,
"updateTime": 1663916021,
"hdop": 34,
"eventCode": 30,
"tripState": "ACTIVE",
"messageTypeId": 0,
"location": {
"latitude": 39.7958738,
"longitude": -104.864155
},
"batteryPercentage": 0,
"commonState": -113,
"carrierId": 410,
"currentState": 34,
"messageEventTypeId": 0
}

Reference

FieldDescription
type
String
Type of event.

Example: "EVENT_REPORT_MESSAGE"
messageType
String
Specific subtype of event.

Example:"TEMPERATURE_2"
id
String, UUID
Unique event ID.

Example:"1c00caa5-9b00-4739-ae41-90e28d4d96d8"
deviceId
String, UUID
Unique device identifier.
Example:"cc34889e-3c23-11ed-8ba0-2b14e7e17f80"
deviceSerial
Integer
Device serial number.
Example: "4673259224"
deviceTypeId
Integer
Device type identifier.
Example: 6
vendorTypeId
Integer
Vendor-specific device type.
Example:2
vehicleId
String,UUID
Unique vehicle ID.
Example: "cc34889d-3c23-11ed-8ba0-9f41661aaa4d"
vehicleName
String
Name of the vehicle.
Example: "4673259224"
groupId
String,UUID
Group ID.
Example: "c337220c-8672-11e2-9b71-55cae3166848"
groupName
String
Name of the group.
Example: "Default Group"
eventInfo
Object {\
sensorUnit: CELSIUS,
sensorValue: 7672789
}
Contains sensor-related data for the event.
sensorUnit
String
Unit of the temperature reading.
Example: CELSIUS
sensorValue
Integer
Raw temperature value reported by the sensor.
Example: 7672789
customerId
Integer
Customer identifier.
Example: 1059
messageIndex
Integer
Message sequence ID.
Example:"2276"
tripNumber
Integer
Trip number.
Example: 0
tripState
String
State of the trip.
Example: "ACTIVE"
location
Location {
latitude: 34.12,
longitude: -82.14
}
Current location object of the vehicle
latitude
Double
Latitude co-ordinate value in degrees
Example: 34.12
longitude
Double
Longitude co-ordinate value in degrees
Example: -82.34
lastKnownLat
Double
Last known latitude in degrees.
Example: 39.7958738
lastKnownLon
Double
Last known longitude in degrees.
Example:-104.864155
lastKnownTime
TimeStamp
Time when location was last recorded in milliseconds.
Example:1663916021000
locationTime
TimeStamp
Time when fix was acquired in milliseconds.
Example: 1663916021000
odometer
Integer
Odometer reading.
Example: 0
speed
Integer
Speed in km/h or mph depending on configuration.
Example: 0
heading
Integer
Heading in degrees.
Example: 358
signalStrength
Integer
Cellular signal strength.
Example: 65475
satellites
Integer
Number of satellites.
Example: 16
hdop
Integer
Horizontal Dilution of Precision.
Example:34
networkService
Integer
Network availability.
Example: 1
dataService
Integer
Data service availability.
Example:1
network3G
Integer
3G network flag.
Example: 0
roaming
Integer
Roaming status.
Example: 0
batteryPercentage
Integer
Battery level in percentage.
Example: 0
partialUpdate
Boolean
Indicates if this is a partial data update.
Example: true
virtualTripEnd
Boolean
Whether the trip ended virtually.
Example: false
privacyModeEnable
Boolean
Privacy mode status.
Example:false
insideHOO
Boolean
Inside Hours of Operation.
Example: true
storedLocation
Boolean
Indicates whether location is stored.
Example: false
protocolVersionIdChange
Boolean
Indicates whether protocol version changed.
Example: false
accumulators
Array
Accumulator data.
Example:["92", "7672789", "0"]`
eventIndex
Integer
Index of the event.
Example: 115
eventCode
Integer
Event code.
Example: 30
messageEventTypeId
Integer
Internal message event type ID.
Example: 0
commonState
Integer
Common state value.
Example: -113
carrierId
Integer
Carrier ID.
Example: 410
offset
Integer
Time offset.
Example:0
updateTime
TimeStamp
Timestamp when update was received in milliseconds.
Example: 1663916021

Did this page help you?