phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
Loading...
Searching...
No Matches
phyphox::SensorData Struct Reference

#include <ElementData.h>

Public Attributes

const char * type = nullptr
 a phyphox sensor type string (SENSOR_* in phyphoxBle.h)
 
const char * xmlAttribute = nullptr
 
uint16_t rate = 0
 0 = not set (1.x emitted 80 by default; 2.0 emits nothing = fastest)
 
bool average = false
 
bool averageSet = false
 
const char * rateStrategy = nullptr
 auto | request | generate | limit (format 1.14)
 
uint16_t stride = 0
 use every n-th reading; 0 = not set
 
const char * nameFilter = nullptr
 for type "custom" or to pick one of several sensors (1.19)
 
int32_t typeFilter = -1
 Android sensor type constant; −1 = not set (1.19)
 
SensorComponent components [PHYPHOX_BLE_SENSOR_COMPONENTS]
 
uint8_t channels [PHYPHOX_BLE_SENSOR_COMPONENTS]
 input channel each component lands in
 
uint8_t componentCount = 0
 
ErrorRecord error
 

Member Data Documentation

◆ average

bool phyphox::SensorData::average = false

◆ averageSet

bool phyphox::SensorData::averageSet = false

◆ channels

uint8_t phyphox::SensorData::channels[PHYPHOX_BLE_SENSOR_COMPONENTS]

input channel each component lands in

◆ componentCount

uint8_t phyphox::SensorData::componentCount = 0

◆ components

SensorComponent phyphox::SensorData::components[PHYPHOX_BLE_SENSOR_COMPONENTS]

◆ error

ErrorRecord phyphox::SensorData::error

◆ nameFilter

const char* phyphox::SensorData::nameFilter = nullptr

for type "custom" or to pick one of several sensors (1.19)

◆ rate

uint16_t phyphox::SensorData::rate = 0

0 = not set (1.x emitted 80 by default; 2.0 emits nothing = fastest)

◆ rateStrategy

const char* phyphox::SensorData::rateStrategy = nullptr

auto | request | generate | limit (format 1.14)

◆ stride

uint16_t phyphox::SensorData::stride = 0

use every n-th reading; 0 = not set

◆ type

const char* phyphox::SensorData::type = nullptr

a phyphox sensor type string (SENSOR_* in phyphoxBle.h)

◆ typeFilter

int32_t phyphox::SensorData::typeFilter = -1

Android sensor type constant; −1 = not set (1.19)

◆ xmlAttribute

const char* phyphox::SensorData::xmlAttribute = nullptr

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