WirelessDataPoint
public
DataPoint
WirelessDataPoint

Represents a single channel's data point within a sweep

See Also

DataPoint, Value

Functions
WirelessDataPoint
WirelessDataPoint(
WirelessChannel::ChannelId channelId,
uint8 channelNumber,
ValueType type,
const anyType &value,
const ChannelProperties &channelProperties ChannelProperties()
)

Builds a WirelessDataPoint object.  The channel name will be automatically generated from the given channel id.

Parameters
channelId

The WirelessChannel::ChannelId of the the data point

channelNumber
uint8

The channel number associated with the data point (ch1 = 1, ch8 = 8).

type

The ValueType of the value to be stored

value
const anyType&

The value to store

channelProperties
const ChannelProperties&

Any <ChannelProperties> to store for later retrieval.

WirelessDataPoint
WirelessDataPoint(
WirelessChannel::ChannelId channelId,
uint8 channelNumber,
const Utils::Lazy<std::string&channelName,
ValueType type,
const anyType &value,
const ChannelProperties &channelProperties ChannelProperties()
)

Builds a WirelessDataPoint object.  The channel name will be automatically generated from the given channel id.

Parameters
channelId

The WirelessChannel::ChannelId of the the data point

channelNumber
uint8

The channel number associated with the data point (ch1 = 1, ch8 = 8).

channelName
const Utils::Lazy<std::string>&

The channel name associated with the data point.

type

The ValueType of the value to be stored

value
const anyType&

The value to store

Variables
m_channelId
WirelessChannel::ChannelId m_channelId

The WirelessChannel::ChannelId representing information about the channel this data point is associated with

m_channelNumber
uint8 m_channelNumber

The channel number associated with the data point (ch1 = 1, ch8 = 8).

m_channelName
mutable Utils::Lazy<std::string> m_channelName

The channel name associated with the data point.  std::string m_channelName;

Functions
channelId
WirelessChannel::ChannelId channelId() const

Gets the WirelessChannel::ChannelId associated with the data point.

Returns

A WirelessChannel::ChannelId representing which channel this data corresponds with.

channelNumber
uint8 channelNumber() const

Gets the channel number associated with the data point (ch1 = 1, ch8 = 8), when applicable.  Otherwise, this will return a 0 (for example, a Structural Health data point doesn't relate an actual channel on the Wireless Node, so this will be a 0).  This number can be used to relate to the Node's WirelessChannel in the map returned from calling <WirelessNode::channels>().

Returns

The channel number associated with the data point.

channelName
const std::string& channelName() const

Gets the name of the channel.  This is the universal channel name that should be used for uploading to SensorCloud.

Returns

The name of the channel.

Exceptions
Types
ChannelData

A typedef for a collection (vector) of WirelessDataPoints