Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note:  Not all packet types may be enabled for all projects, please contact customer support for more details.

PacketTypeDescriptionStatus
sBv2Beeks V2 packetStandard
iBeaconiBeacon standard packets
Standard
Optional
sLightBeeks light sensor packetOptional
sSnsBeeks motion sensorOptional
unknownRaw BLE packets from generic devicesOptional

Anatomy of a Packet

Messages in the Streaming API are "flattened" for easier processing.  Consumers should parse the "packetType" property first and then handle the message accordingly.

Property NameValue TypeDescriptionAlways Present
projectIdNumberThe Project id of the Adapter and owner of this data.Yes
adapterIdStringUnique identifier of the Adapter (BluFi)Yes
adapterTypeStringDefines the Adapter type (currently only BluFi)Yes
versionStringVersion of the message formatYes
packetTypeStringWhat type of data is being reported.Yes
serverTimestampNumberUnix style timestamp of when the packet was received on Bluzone CloudYes
timestampStringThe ISO 8601 format of the timestamp of when the packet was received by the Cloud in UTCYes
idStringA unique identifier of the device where the BLE packet originatedNo
timeNumberA timestamp relative to the device, useful for packet sequencingNo
batteryNumberThe current voltage level of the deviceNo
tempNumberThe temperature observed by the device in Celsius (float value)No
rssiNumberSignal strength as observed by the AdapterNo
uuidStringStandard iBeacon protocol UUID valueNo
majorNumberStandard iBeacon protocol Major valueNo
minorNumberStandard iBeacon protocol Minor valueNo
measuredPowerNumberBroadcast power as reported by the deviceNo
eventCounterArray (Numeric)Raw event data from motion sensorNo
xAccelNumberMotion sensor accelleration on x axisNo
yAccelNumberMotion sensor accelleration on y axisNo
zAccelNumberMotion sensor accelleration on z axisNo
lumsNumberThe lumens observed by the Light sensorNo
typeStringRaw BLE type found in an "unknown" packet typeNo
rawArray (bytes)Raw BLE data encapsulated in a byte arrayNo
gidStringGAT General Id, value depends on device implementationNo

Example Packets

Note:  Properties not supported by the example packet type are omitted.  Fields defined above as "Always Present" should never be null, other fields may be null.

...