![]() |
|
Send device sensor data to external http server - Printable Version +- phyphox Forums (https://phyphox.org/forums) +-- Forum: App-Feedback (https://phyphox.org/forums/forumdisplay.php?fid=6) +--- Forum: Bugs and Problems (https://phyphox.org/forums/forumdisplay.php?fid=9) +--- Thread: Send device sensor data to external http server (/showthread.php?tid=2150) |
Send device sensor data to external http server - matc1 - 06-03-2025 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. RE: Send device sensor data to external http server - Jens Noriʇzsɔɥ - 06-03-2025 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... RE: Send device sensor data to external http server - matc1 - 06-03-2025 (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. RE: Send device sensor data to external http server - Jens Noriʇzsɔɥ - 06-03-2025 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… RE: Send device sensor data to external http server - matc1 - 06-03-2025 (06-03-2025, 04:46 PM)Jens Noriʇzsɔɥ Wrote: Hm… might be this: https://support.apple.com/en-us/102229 Thank's i will check it RE: Send device sensor data to external http server - Jens Noriʇzsɔɥ - 06-03-2025 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). RE: Send device sensor data to external http server - Jens Noriʇzsɔɥ - 06-03-2025 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/Remote-interface_communication, for polling though. RE: Send device sensor data to external http server - matc1 - 06-03-2025 (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 |