MetaWear C# SDK  1.2.0
C# API for MbientLab's sensor platform
Public Member Functions | Properties | List of all members
MbientLab.MetaWear.IData Interface Reference

A sample of sensor data More...

Public Member Functions

Extra< T > ()
 Extra information attached to this data sample More...
 
Value< T > ()
 Converts the data bytes to a usable data type More...
 

Properties

Type [] Types [get]
 Types that can be used to extract the values from the IData object More...
 
byte [] Bytes [get]
 Raw byte representation of the data value More...
 
DateTime Timestamp [get]
 Time of when the data was received (streaming) or created (logging) More...
 
String FormattedTimestamp [get]
 String representation of the timestamp in the format More...
 
float Scale [get]
 LSB to units ratio. Only used if developer is manually type casting the returned byte array from the Bytes property More...
 

Detailed Description

A sample of sensor data

Member Function Documentation

◆ Extra< T >()

T MbientLab.MetaWear.IData.Extra< T > ( )

Extra information attached to this data sample

Template Parameters
TType to cast the return value as
Returns
Extra information as the specified type

◆ Value< T >()

T MbientLab.MetaWear.IData.Value< T > ( )

Converts the data bytes to a usable data type

Template Parameters
TType to cast the return value as
Returns
Data value as the specified type

Property Documentation

◆ Bytes

byte [] MbientLab.MetaWear.IData.Bytes
get

Raw byte representation of the data value

◆ FormattedTimestamp

String MbientLab.MetaWear.IData.FormattedTimestamp
get

String representation of the timestamp in the format

YYYY-MM-DDTHH:MM:SS.LLL. The timezone of the string will be the local device's current timezone.

◆ Scale

float MbientLab.MetaWear.IData.Scale
get

LSB to units ratio. Only used if developer is manually type casting the returned byte array from the Bytes property

◆ Timestamp

DateTime MbientLab.MetaWear.IData.Timestamp
get

Time of when the data was received (streaming) or created (logging)

◆ Types

Type [] MbientLab.MetaWear.IData.Types
get

Types that can be used to extract the values from the IData object


The documentation for this interface was generated from the following file: