|
phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
|
#include <phyphoxBleExperiment.h>
Classes | |
| class | Button |
| New in 2.0. More... | |
| class | Dropdown |
| class | Edit |
| class | Element |
| Base of every view element. Holds the plain data the serializer reads. More... | |
| class | ExportData |
| class | ExportSet |
| class | Graph |
| class | InfoField |
| class | InputElement |
| Common API of the elements that send a value to the board. More... | |
| class | Sensor |
| A sensor of the phone whose readings the phone sends to the board. More... | |
| class | Separator |
| class | Slider |
| class | Toggle |
| class | Value |
| class | View |
| A tab in the app. Links its elements into a list until addExperiment() copies them. More... | |
Public Member Functions | |
| PhyphoxBleExperiment ()=default | |
| PhyphoxBleExperiment (const char *title, const char *category=nullptr, const char *description=nullptr) | |
| Shortcut for setTitle/setCategory/setDescription. | |
| PhyphoxBleExperiment (const PhyphoxBleExperiment &)=delete | |
| PhyphoxBleExperiment & | operator= (const PhyphoxBleExperiment &)=delete |
| void | setTitle (const char *) |
| void | setCategory (const char *) |
| void | setDescription (const char *) |
| void | setColor (const char *) |
| void | setRepeating (int) |
Samples per data notification when using the array write; emits the repeating attribute. | |
| void | setSubscribeOnStart (bool) |
| void | setResendUnchanged (bool) |
| 1.x behaviour: the phone writes every input's value every analysis cycle, not only on change (decision D14). | |
| PhyphoxBleExperiment & | addView (View &) |
| PhyphoxBleExperiment & | addSensor (Sensor &) |
| PhyphoxBleExperiment & | addExportSet (ExportSet &) |
Public Attributes | |
| phyphox::ExperimentData | data |
| experiment-level fields; arrays filled at addExperiment | |
| View * | views = nullptr |
| list heads | |
| View * | lastView = nullptr |
| Sensor * | sensors = nullptr |
| Sensor * | lastSensor = nullptr |
| ExportSet * | exportSets = nullptr |
| ExportSet * | lastExportSet = nullptr |
|
default |
| PhyphoxBleExperiment::PhyphoxBleExperiment | ( | const char * | title, |
| const char * | category = nullptr, |
||
| const char * | description = nullptr |
||
| ) |
Shortcut for setTitle/setCategory/setDescription.
|
delete |
| PhyphoxBleExperiment & PhyphoxBleExperiment::addExportSet | ( | ExportSet & | ) |
| PhyphoxBleExperiment & PhyphoxBleExperiment::addSensor | ( | Sensor & | ) |
| PhyphoxBleExperiment & PhyphoxBleExperiment::addView | ( | View & | ) |
|
delete |
| void PhyphoxBleExperiment::setCategory | ( | const char * | ) |
| void PhyphoxBleExperiment::setColor | ( | const char * | ) |
| void PhyphoxBleExperiment::setDescription | ( | const char * | ) |
| void PhyphoxBleExperiment::setRepeating | ( | int | ) |
Samples per data notification when using the array write; emits the repeating attribute.
| void PhyphoxBleExperiment::setResendUnchanged | ( | bool | ) |
1.x behaviour: the phone writes every input's value every analysis cycle, not only on change (decision D14).
Also handy as a heartbeat from the phone.
| void PhyphoxBleExperiment::setSubscribeOnStart | ( | bool | ) |
| void PhyphoxBleExperiment::setTitle | ( | const char * | ) |
| phyphox::ExperimentData PhyphoxBleExperiment::data |
experiment-level fields; arrays filled at addExperiment
| ExportSet* PhyphoxBleExperiment::exportSets = nullptr |
| ExportSet* PhyphoxBleExperiment::lastExportSet = nullptr |
| Sensor* PhyphoxBleExperiment::lastSensor = nullptr |
| View* PhyphoxBleExperiment::lastView = nullptr |
| Sensor* PhyphoxBleExperiment::sensors = nullptr |
| View* PhyphoxBleExperiment::views = nullptr |
list heads