Skip to content

Commit d74c1ba

Browse files
committed
small fixes
1 parent 81cd284 commit d74c1ba

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

README.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,43 @@ Have you ever thought about the possibility to control your action camera with y
2626

2727
## Supported boards:
2828

29-
- ESP8266
3029
- ESP32
31-
- ~~any arduino boards (UNO, nano, 101, etc.) attached to an ESP8266 (ESP01) using AT commands with [this library](https://github.com/bportaluri/WiFiEsp)~~ - removed for now
32-
- offical Arduino boards with Wifi like the MKR series - todo
30+
- ESP8266
31+
- MKR1000
32+
- MKR WiFi 1010
33+
- MKR VIDOR 4000
34+
- UNO WiFi Rev.2
35+
- Arduino UNO
36+
- any arduino boards (UNO, nano, 101, etc.) attached to an ESP8266 (ESP01) using AT commands with [this library](https://github.com/bportaluri/WiFiEsp)
37+
3338

3439
## Supported cameras:
3540

36-
- HERO3+
41+
- HERO3
3742
- HERO4
38-
- HERO5 (tested with Black)
39-
- HERO6 Black
40-
- HERO7 Black
43+
- HERO5
44+
- HERO6
45+
- HERO7
4146
- Fusion
4247

43-
I made the library with a style which would be quite easy to add other cameras (not only gopro). I would be very happy to accept pull requests 😃
48+
I made the library with a style which would be quite easy to add other cameras (not only GoPro). I would be very happy to accept pull requests 😃
4449

4550
## Installation
4651

47-
- Using Arduino IDE:
52+
- Arduino IDE:
4853
- Go to Tools > Manage libraries
49-
- Search for GoProControl
50-
- Using PlatformIO for Visual Studio Code:
51-
- ````pio lib install "GoProControl"````
54+
- Search for `GoProControl`
55+
- PlatformIO:
56+
- From command line: run ```pio lib install "GoProControl"```
57+
- Or if you prefer a GUI from [Platformio IDE](https://docs.platformio.org/en/latest/librarymanager/)
5258
- Manually:
53-
- ````cd $HOME/Arduino/libraries```` ([see Arduino library paths for other operating systems](https://www.arduino.cc/en/hacking/libraries))
54-
- ````git clone https://github.com/aster94/GoProControl.git````
59+
- ```cd $HOME/Arduino/libraries``` ([see Arduino library paths for other operating systems](https://www.arduino.cc/en/hacking/libraries))
60+
- ```git clone https://github.com/aster94/GoProControl.git```
5561
- Restart Arduino IDE
5662

5763
## Examples
5864

59-
**Important:** Don't forget to change the SSID and Password on the example code! To do so, edit the Constants.h file (Constants.h.example should be renamed to Constants.h) in the example folder. Also change camera type (HERO3, HERO4, HERO5, HERO6...)
65+
**Important:** Rename the `Constants.h.example` to `Constants.h` and change the SSID, Password and camera model. If you have a GoPro HERO4 or newer you should add also the [mac address](https://havecamerawilltravel.com/gopro/gopro-mac-address/) and the hostname of the board you want to connect to your camera
6066

6167
## Supported Options
6268

src/GoProControl.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ uint8_t GoProControl::setTimeLapseInterval(float option)
10801080
{
10811081
option = 0;
10821082
}
1083-
const uint8_t i_option = (int)option;
1083+
const uint8_t i_option = (uint8_t)option;
10841084

10851085
if (i_option != 0 || i_option != 1 || i_option != 5 || i_option != 10 || i_option != 30 || i_option != 60)
10861086
{
@@ -1177,7 +1177,7 @@ uint8_t GoProControl::setContinuousShot(const uint8_t option)
11771177
}
11781178

11791179
// convert float to integer
1180-
const uint8_t i_option = (int)option;
1180+
const uint8_t i_option = (uint8_t)option;
11811181

11821182
if (i_option != 0 || i_option != 3 || i_option != 5 || i_option != 10)
11831183
{
@@ -1421,6 +1421,7 @@ void GoProControl::sendWoL()
14211421
_udp_client.write(_mac_address, 6);
14221422
}
14231423
_udp_client.endPacket();
1424+
_udp_client.stop();
14241425
delay(2000);
14251426
}
14261427

0 commit comments

Comments
 (0)