phyphox Forums
Send variables with REST api to Arduino - Printable Version

+- phyphox Forums (https://phyphox.org/forums)
+-- Forum: App-Feedback (https://phyphox.org/forums/forumdisplay.php?fid=6)
+--- Forum: Feature requests (https://phyphox.org/forums/forumdisplay.php?fid=8)
+--- Thread: Send variables with REST api to Arduino (/showthread.php?tid=1447)



Send variables with REST api to Arduino - jmparatte - 10-26-2021

I've checked getDataFromSmartphone.ino example, it works great.

How can we do the same with a REST command http://x.x.x.x:8080/control?... ?
For example, I'm interested to send order to configure/select Arduino experiment, to change source, etc.
Is it possible?
Is there somewhere an example?

Best regards.


RE: Send variables with REST api to Arduino - Jens Noriʇzsɔɥ - 11-03-2021

Are you perhaps referring to something like in http://hebergement.universite-paris-saclay.fr/supraconductivite/projet/arduino_nano/?lang=en? They are setting sensor type in phyphox and the Arduino source is left untouched for the different experiments…

There is some upcoming improvement for a „backchannel“ in https://phyphox.org/arduino/, it should be already in the development branch on GitHub.