Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

How the GoProCamera.GoPro() get the model_name, ap_ssid, ap_mac, etc? #179

Open
zqyq opened this issue Aug 9, 2021 · 1 comment
Open

Comments

@zqyq
Copy link

zqyq commented Aug 9, 2021

We want to connect with 2 gopros with 2 wifi adapters separately. But we find that in the init() of GoProCamera.py:

gopro = GoProCamera.GoPro()

def init():

self.ip_addr = ip_address

self._camera = ""

Once the line self._camera = "" is executed, the information of the GoPro as mentioned, will suddenly be obtained.

It sounds like there is another process running and once self._camera is given, the default camera will be detected.

Can anyone explain this? Since we want to communicate with the two gopros via different wifi adapters, we need to properly detect the two cameras first.

@KonradIT
Copy link
Owner

This is done via the /gp/gpControl/info endpoint.

Since we want to communicate with the two gopros via different wifi adapters

You need to tweak your wpa_supplicant file and network/interfaces file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants