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 be null.
  • When a report has no location fix, location is an empty object ({}) and none of the location fields are present.
  • deviations is always an object with temperature, humidity and light objects.

Data Report Schema Fields

Field NameTypeUnitsNullableDescription
messageIdString (UUID)—NoUnique identifier of the report message.
deviceIdString—NoIdentifier of the reporting BLE Tag: an 8-character hexadecimal ID (e.g. "1718F549").
accountIdString (UUID)—NoThe operational Sensos account ID that the reporting device belongs to.
timestampStringISO 8601NoTime of the reading, represented in UTC with whole seconds (YYYY-MM-DDTHH:mm:ssZ).
typeString—NoMessage type discriminator. Fixed to "SensosBleTagMessage" for BLE Tag reports.
device.partNumberString—YesCommercial hardware part number of the tag (e.g. "STS-1000-00-A-10").
device.softwareVersionString—YesFirmware version running on the tag (e.g. "0.1.1.62951").
location.sourceString—YesAlways null for BLE Tag reports. Present only when the report has a location fix.
location.latitudeDecimal / FloatDegreesNo (when location has a fix)Tag geographical latitude in decimal degrees.
location.longitudeDecimal / FloatDegreesNo (when location has a fix)Tag geographical longitude in decimal degrees.
location.accuracyIntegerMetersYesEstimated horizontal accuracy radius in meters. Present only when the report has a location fix.
location.countryString—YesCountry name of the location. Present only when the report has a location fix.
sensors.temperatureDecimal / Float°CYesTemperature measured by the tag. null when the report has no valid temperature reading.
sensors.humidityDecimal / Float%RHYesRelative humidity measured by the tag. null when the report has no valid humidity reading.
battery.percentageInteger%YesEstimated remaining battery, from 0% to 100%. Always included; null when unknown.
deviations.temperature.countInteger—YesNumber 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.durationIntegerMinutesYesTotal minutes the temperature was outside the configured range, high and low combined, since the tag's activation (cumulative).
deviations.humidity.countInteger—YesNumber 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.countInteger—YesNumber 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 32

For example, a previous count of 30 followed by a count of 2 means 4 new deviations.


Did this page help you?