Skip to content

Issue with connecting/shooting photos after 1st time ESP8266 & Hero 7 #40

@PlastiBots

Description

@PlastiBots

Hi. First off, thank you for the great effort put into creating this library! Have a challenge with failed connections after the first attempt. I can only get the ESP to trigger picture captures after resetting the GoPro WiFi connection and rebooting it. The first time in, I can connect and take photos. After this, it fails. Regardless of power cycling the ESP or the GoPro Below is the code I am using, and further down is the Serial output:

#include <GoProControl.h>
#include "Secrets.h"

/*
  Control your GoPro with the Serial Monitor
  edit the file Secrets.h with your camera netword name and password
  CAMERA could be: HERO3, HERO4, HERO5, HERO6, HERO7, FUSION, HERO8, MAX
*/

#define CAMERA HERO7 // Change here for your camera
//from my Hero 7:  06 41 69 EF 79 94
byte remote_MAC_ADD[] = { 0x06, 0x41, 0x69, 0xEF, 0x79, 0x94 };
const char* board = "NodeMCU";   //ESP Board Name


GoProControl gp(GOPRO_SSID, GOPRO_PASS, CAMERA, remote_MAC_ADD, board);

void setup()
{
  gp.enableDebug(&Serial);

  while (!gp.isConnected())
  {
    gp.begin();
  }
  
  for (int i=0; i<5; i++)
  {
    Serial.println("Attempting a shot.");
    gp.shoot();
    gp.keepAlive(); // not needed on HERO3
    delay(1000);
  }  
}

void loop()
{
  Serial.println("In Main Loop. Keep alive.");
  gp.keepAlive(); // not needed on HERO3 
}

Attempting to connect to SSID: "GP50039006"
Using password: "kS9-mMx-Rvx"
.......................................................
Connected to GoPro
Attempting a shot.
Connection lost
Attempting a shot.
Connect the camera first
Attempting a shot.
Connect the camera first
Attempting a shot.
Connect the camera first..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions