Created
April 7, 2018 16:19
-
-
Save cyberstackover/4842a0b692f8c114cd173604096c1219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require goproh4, request, fs | |
function getFile() | |
listMedia() then ▹ list captured images | |
getLatestImage() | |
end | |
end function | |
request.get(10.5.5.9) ▹ get request to GoPro API | |
.on(response.code == 200) | |
setBurstMode() then ▹ set GoPro to burst mode | |
startCapture() | |
status = wait() ▹ get GoPro status | |
if(status == ready) | |
getFile() then | |
sendData() ▹ send image | |
end | |
end if | |
else | |
print “not ready” | |
end else | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment