I have two GoPro cameras that I can control through 10.5.5.9/x/x/x/ over WiFi - the thought process is that I can control both using two different network interfaces to connect to both cameras and then send a request to the URL (from earlier) and control both the cameras.
To test my theory I did the following commands in terminal:
curl --interface wlan0 http://10.5.5.9/gp/gpControl/command/shutter?p=1
curl --interface wlan1 http://10.5.5.9/gp/gpControl/command/shutter?p=1
Subsequently, this activates both cameras and they both begin recording. Great!
Putting this code into Python I tried the simple version of:
import os
resp = os.popen('curl --interface wlan0 http://10.5.5.9/gp/gpControl/command/shutter?p=1').read()
print(resp)
resp = os.popen('curl --interface wlan1 http://10.5.5.9/gp/gpControl/command/shutter?p=1').read()
print(resp)
But it only activates one camera and not the other, what is the reason behind this? I did the similar method using the answer to this question and it does the same, only activating one camera.