Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix COHN cert default value, useful for multiple camera #637

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexivaner
Copy link

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

I encounter an issue when attempting to connect multiple GoPros using COHN mode. Each connection to COHN mode consistently utilizes the same certificate name, resulting in the overwriting of the previously created cohn.crt file. To address this, I propose implementing a small fix that generates a certificate name based on the serial number of the GoPro camera. This modification will facilitate easier connectivity of multiple GoPro cameras in COHN mode.

🤙 Thank you!

@tcamise-gpsw
Copy link
Collaborator

Can you rebase off of main?
Also you need to run black to format the code in order to pass the CI checks. Here are steps for development setup.

@tcamise-gpsw
Copy link
Collaborator

Ultimately we need a database to store the certificates (and any other information) per serial number. But this is a fine workaround for now.

Copy link
Collaborator

@tcamise-gpsw tcamise-gpsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just need to remove the identifier parameter

@@ -70,6 +70,7 @@ def parse_arguments() -> argparse.Namespace:
parser.add_argument("ssid", type=str, help="WiFi SSID to connect to.")
parser.add_argument("password", type=str, help="Password of WiFi SSID.")
parser.add_argument("url", type=str, help="RTMP server URL to stream to.")
parser.add_argument("identifier", type=str, help="GoPro identifier.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter already exists. It is added via the add_cli_args_and_parse below

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

Successfully merging this pull request may close these issues.

3 participants