public class BinaryDataPoint
extends java.lang.Object
When a binary data point is push 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 object:
DataStream,
DataPoint| Constructor and Description |
|---|
BinaryDataPoint(byte[] data,
DataStream stream)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Retrieves a copy of the data point data.
|
DataStream |
getDataStream()
Retrieves the data stream destination of the data point.
|
int |
getType()
Retrieves the binary data point type.
|
java.lang.String |
getTypeName()
Retrieves the binary data point type name.
|
byte[] |
toBinaryFormat()
Retrieves the data point in binary format.
|
public BinaryDataPoint(byte[] data,
DataStream stream)
data - Binary data point value.stream - Data stream destination of this binary data point.java.lang.IllegalArgumentException - if data == null or
if stream == null.public byte[] getData()
public DataStream getDataStream()
public int getType()
DataPoint.TYPE_BINARY,
getTypeName()public java.lang.String getTypeName()
DataPoint.TYPE_BINARY,
getType()public byte[] toBinaryFormat()
© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.