This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Send device sensor data to external http server
#1
Hi, I'm just getting started with your phyphox App.

I have a question: 

i created a test experiment and i inserted the following "lines" in phyphox  configuration file to receive data from the device spontaneously to an external web server:

<network>
<connection id="gps_stream" service="http/post" address="https://www.testdemo.com/" interval="15">
<send id="accX" type="buffer" datatype="number" keep="false">accX</send>
<send id="accY" type="buffer" datatype="number" keep="false">accY</send>
<send id="accZ" type="buffer" datatype="number" keep="false">accZ</send>
<send id="acc" type="buffer" datatype="number" keep="false">acc</send>
</connection>
</network>

It works perfectly. I receive data on my exposed web site.

My problem is that if I replace address="https://www.testdemo.com/" with an internal network address I get a connection error from the "phyphox" application.

Example address="http//10.1.1.100/" (the mobile is in the same network and has ip 10.1.1.202)

Is there any limitation to the use of internal network addresses on the phyphox application side? 

I use an iPhone 13 on which I installed phyphox. 

Thank you.
Reply
#2
Have you tried the “Remote Access” (REST interface) feature in phyphox, so connecting to an internal webserver on your mobile? We are aware of school networks that do not allow device to device connections. That's the only possible reason I can think of off the top of my head...
Reply
#3
(06-03-2025, 04:21 PM)Jens Noriʇzsɔɥ Wrote: Have you tried the “Remote Access” (REST interface) feature in phyphox, so connecting to an internal webserver on your mobile? We are aware of school networks that do not allow device to device connections. That's the only possible reason I can think of off the top of my head...

Where i can find docu about  (REST interface) ? 

My scope is to send data outside mobile without any polling, versus external server.

Ok thank's i will try at home network.
Reply
#4
Hm… might be this: https://support.apple.com/en-us/102229

I am not sure if you can allow it if the dialog has not been triggered in an app…
Reply
#5
(06-03-2025, 04:46 PM)Jens Noriʇzsɔɥ Wrote: Hm… might be this: https://support.apple.com/en-us/102229

I am not sure if you can allow it if the dialog has not been triggered in an app…

Thank's i will check it
Reply
#6
I quickly set up an example experiment and the dialog is immediately triggered when I tap “Submit”. Please check in the Settings app > “Privacy & Security” > “Local Network” that the access slider for phyphox is active (green).
Reply
#7
Ad REST interface: in any experiment, you could activate “Remote Access” in the three dots menu. If you connect to the internal web server, you could control phyphox in a browser. The full documentation is at https://phyphox.org/wiki/index.php/Remot...munication, for polling though.
Reply
#8
(06-03-2025, 05:13 PM)Jens Noriʇzsɔɥ Wrote: I quickly set up an example experiment and the dialog is immediately triggered when I tap “Submit”. Please check in the Settings app > “Privacy & Security” > “Local Network” that the access slider for phyphox is active (green).

Solved!!

Thanks a Lot
Reply


Forum Jump: