BLE Tag Reports Common Schema
Common Schema Structure
This document outlines the common schema structure for reports generated by Sensos BLE Tags.
Data delivery rules with the DeviceReport data source deliver BLE Tag reports together with Smart Label reports. BLE Tag reports use the schema below, with type set to "SensosBleTagMessage"; Smart Label reports use the Device Reports Common Schema ("SensosLabelMessage"). Use type to tell them apart.
Below is an example of the JSON report structure used in data delivery:
Example JSON Report
{
"messageId": "5f0c2a1e-8a3b-4c1d-9e2f-0a1b2c3d4e5f",
"deviceId": "1718F549",
"accountId": "83298196-0d7a-4f45-9a06-a3e92c35a090",
"timestamp": "2026-11-03T07:13:34Z",
"type": "SensosBleTagMessage",
"device": {
"partNumber": "STS-1000-00-A-10",
"softwareVersion": "0.1.1.62951"
},
"location": {
"source": null,
"latitude": 32.652365,
"longitude": -115.399934,
"accuracy": 12,
"country": null
},
"sensors": {
"temperature": 27.1,
"humidity": null
},
"battery": {
"percentage": 90
},
"deviations": {
"temperature": {
"count": 3,
"duration": 42
},
"humidity": {
"count": 0
},
"light": {
"count": 1
}
}
}Missing Values
- Fields that have no value in a report are sent as
null; they are never omitted. This differs from Smart Label reports, which omit fields without a value. Fields marked Nullable: Yes in the table below may benull. - When a report has no location fix,
locationis an empty object ({}) and none of thelocationfields are present. deviationsis always an object withtemperature,humidityandlightobjects.
Data Report Schema Fields
| Field Name | Type | Units | Nullable | Description |
|---|---|---|---|---|
messageId | String (UUID) | — | No | Unique identifier of the report message. |
deviceId | String | — | No | Identifier of the reporting BLE Tag: an 8-character hexadecimal ID (e.g. "1718F549"). |
accountId | String (UUID) | — | No | The operational Sensos account ID that the reporting device belongs to. |
timestamp | String | ISO 8601 | No | Time of the reading, represented in UTC with whole seconds (YYYY-MM-DDTHH:mm:ssZ). |
type | String | — | No | Message type discriminator. Fixed to "SensosBleTagMessage" for BLE Tag reports. |
device.partNumber | String | — | Yes | Commercial hardware part number of the tag (e.g. "STS-1000-00-A-10"). |
device.softwareVersion | String | — | Yes | Firmware version running on the tag (e.g. "0.1.1.62951"). |
location.source | String | — | Yes | Always null for BLE Tag reports. Present only when the report has a location fix. |
location.latitude | Decimal / Float | Degrees | No (when location has a fix) | Tag geographical latitude in decimal degrees. |
location.longitude | Decimal / Float | Degrees | No (when location has a fix) | Tag geographical longitude in decimal degrees. |
location.accuracy | Integer | Meters | Yes | Estimated horizontal accuracy radius in meters. Present only when the report has a location fix. |
location.country | String | — | Yes | Country name of the location. Present only when the report has a location fix. |
sensors.temperature | Decimal / Float | °C | Yes | Temperature measured by the tag. null when the report has no valid temperature reading. |
sensors.humidity | Decimal / Float | %RH | Yes | Relative humidity measured by the tag. null when the report has no valid humidity reading. |
battery.percentage | Integer | % | Yes | Estimated remaining battery, from 0% to 100%. Always included; null when unknown. |
deviations.temperature.count | Integer | — | Yes | Number of temperature deviations (excursions outside the configured range, high and low combined) since the tag's activation, sent as a counter from 0 to 31 that wraps back to 0 after 31. Diff consecutive reports to get the new deviations. See Deviations. |
deviations.temperature.duration | Integer | Minutes | Yes | Total minutes the temperature was outside the configured range, high and low combined, since the tag's activation (cumulative). |
deviations.humidity.count | Integer | — | Yes | Number of humidity deviations (excursions outside the configured range, high and low combined) since the tag's activation, sent as a counter from 0 to 31 that wraps back to 0 after 31. Diff consecutive reports to get the new deviations. See Deviations. |
deviations.light.count | Integer | — | Yes | Number of light deviations (package openings) since the tag's activation, sent as a counter from 0 to 31 that wraps back to 0 after 31. Diff consecutive reports to get the new deviations. See Deviations. |
Deviations
deviations reports the deviations the tag has registered since its activation:
deviations.temperature.count: temperature excursions outside the configured range, high and low combined.deviations.humidity.count: humidity excursions outside the configured range, high and low combined.deviations.light.count: package openings.deviations.temperature.duration: total minutes the temperature was outside the configured range, high and low combined, since activation.
Humidity and light deviations have a count only; they have no duration.
Each count is the number of deviations since the tag's activation, sent as a counter from 0 to 31 that wraps back to 0 after 31. To get the new deviations between two reports, order the reports of a tag by timestamp and diff the counts of consecutive reports, modulo 32:
newDeviations = (currentCount - previousCount + 32) mod 32For example, a previous count of 30 followed by a count of 2 means 4 new deviations.
Updated 15 days ago
