phyphox Forums
Sending data back to the input bluetooth device - 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: Sending data back to the input bluetooth device (/showthread.php?tid=2006)



Sending data back to the input bluetooth device - milos - 10-01-2024

Is it possible to send data back to the input device? I tried adding an output device to the experiment but the app asks for another connection.

I am specifically looking for sending configuration data that can be changed dynamically through input fields, and not hardcoded in the experiment, like config tag does


RE: Sending data back to the input bluetooth device - Jens Noriʇzsɔɥ - 10-01-2024

Have you already looked at the example “getDataFromSmartphone.ino” in the IDE (or at https://github.com/phyphox/phyphox-arduino/blob/master/examples/getDataFromSmartphone/getDataFromSmartphone.ino)?


RE: Sending data back to the input bluetooth device - milos - 10-02-2024

(10-01-2024, 09:24 PM)Jens Noriʇzsɔɥ Wrote: Have you already looked at the example “getDataFromSmartphone.ino” in the IDE (or at https://github.com/phyphox/phyphox-arduino/blob/master/examples/getDataFromSmartphone/getDataFromSmartphone.ino)?

I spent some time looking through the library, if I understood correctly, <bluetooth> tags in both <input> and <output> can take the same id (in case of arduino library it's "phyphoxBLE"), making the app send data to the same device it is taking input from.

I have tested this and it's working, thank you  Rolleyes