public class BinaryDataPoint
extends java.lang.Object
When a binary data point is pushed to Device Cloud, it will be stored in the exact binary format you provided for the byte array value.
This kind of data points only specify the value which always is a byte array, and do not include other features such as timestamp, description, quality or location. Regarding the former, the timestamp will be always set by Device Cloud when the value is received.
Binary data points can be sent to Device Cloud using the following methods from Cloud Connector Manager object:
DataPoint
,
DataStream
Constructor | Description |
---|---|
BinaryDataPoint(byte[] data,
DataStream stream) |
Class constructor.
|
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getData() |
Returns a copy of the data point data.
|
DataStream |
getDataStream() |
Return the data stream destination of the data point.
|
public BinaryDataPoint(byte[] data, DataStream stream)
BinaryDataPoint
object with
the given data value.data
- Binary data point value.stream
- Data stream destination of this binary data point.java.lang.NullPointerException
- If data == null
or
if stream == null
.DataStream
public byte[] getData()
public DataStream getDataStream()
DataStream