Custom experiment - Printable Version +- phyphox Forums (https://phyphox.org/forums) +-- Forum: Discussion (https://phyphox.org/forums/forumdisplay.php?fid=1) +--- Forum: General (https://phyphox.org/forums/forumdisplay.php?fid=3) +--- Thread: Custom experiment (/showthread.php?tid=1552) |
Custom experiment - steplab - 04-13-2022 Hi, we realized some custom experiments with an ESP32 based datalogger. We are able to plot data acquired from ESP32 but it is not clear if it is possible receive a feedback from the start button of the graph. We need to reset some variables when the experiment starts before plotting data. Is there any command in standard Arduino library to do that ? RE: Custom experiment - Dominik Dorsel - 04-14-2022 Hey, there are currently 2 different options that might solve your problem: A) you can add an "edit" field to your experiment, check the library example "getDataFromSmartphone" B) if you just want to start a measurement or reset some values you can get the current number of connections with: Code: uint16_t activeConnections = PhyphoxBLE::currentConnections; Unfortunately there is currently no way to get the "user-pressed-play moment" with the library right now. Cheers Dominik |