|
phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
|
Almost every 1.x sketch compiles and runs unchanged. What differs is listed here; what is new is in the Changelog.
SENSOR_MAGNETOMETER → SENSOR_MAGNETIC_FIELD. The 1.x name emitted "magnetometer", which is not a phyphox sensor, so that sensor never delivered data. The old macro still compiles in 2.0 (it now emits the correct name) and is removed in 2.1.
read() returns each element's default before the first change. If a sketch wants the old periodic writes: experiment.setResendUnchanged(true).PhyphoxBLE::poll() is required in loop() on every board.** It always was on the Nano 33 IoT, UNO R4 and MKR boards; now also on the Nano 33 BLE (which moved from the Mbed BLE stack to ArduinoBLE). On the ESP32 it is a no-op, so old ESP32 sketches without it keep working.addExperiment()) is graph + value on every board; on the Nano 33 BLE it used to be the graph alone.&, a less-than sign or a quotation mark broke the document. Both are fixed, so a project that set them sees them now.addElement() now reach every view; 1.x froze each copy at the moment it was added.PhyphoxBleExperiment::Errorhandler, the getBytes() methods and the char* LABEL-style public fields were implementation details of the string-building 1.x generator and are gone; no sketch used them. PhyphoxBleExperiment::MTU moved to PhyphoxBLE::setMTU().