michaelruck / esp32_phone_camera_remote_shutter Goto Github PK
View Code? Open in Web Editor NEWTriggers the shutter of a smartphone cam via bluetooth
License: GNU Lesser General Public License v3.0
Triggers the shutter of a smartphone cam via bluetooth
License: GNU Lesser General Public License v3.0
Hi This is working perfectly on Android but IOS has major issue. IOS will see and pair camera-remote-button but does not fire camera. Worse still it Borks the phone. Unable to access keyboard and unresponsive open programs. Required hard reset on iphone and ipad.
Not really a programmer but know my way around Arduino ide. Any help would be greatly appreciated. I'm really desperate to get this working. Thanks in advance.
Trying to load code as Arduino Sketch (ide 2.0.3) getting the following error. I used legacy ide 1.8.19 as well with same error. Please advise. Thanks in advance
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino: In function 'void taskServer(void*)':
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino:73:19: error: '__BT_NAME' was not declared in this scope
BLEDevice::init(__BT_NAME);
^~~~~~~~~
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino:83:22: error: '__MANUFACTURER' was not declared in this scope
std::string name = __MANUFACTURER;
^~~~~~~~~~~~~~
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino: In function 'void setup()':
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino:147:11: error: '__BUTTONPIN' was not declared in this scope
pinMode(__BUTTONPIN, INPUT);
^~~~~~~~~~~
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino: In function 'void loop()':
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino:165:32: error: '__SEND_KEY' was not declared in this scope
uint8_t msg[] = {0x0, 0x0, __SEND_KEY, 0x0, 0x0, 0x0, 0x0, 0x0};
^~~~~~~~~~
In file included from C:\Users\The Remington\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\cores\esp32/esp32-hal-gpio.h:29,
from C:\Users\The Remington\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\cores\esp32/esp32-hal.h:79,
from C:\Users\The Remington\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\cores\esp32/Arduino.h:36,
from C:\Users\The Remington\AppData\Local\Temp\arduino-sketch-ECD931E4A7E7BDA0881F99B0C6D4F259\sketch\sketch_feb7c.ino.cpp:1:
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino:176:43: error: '__BUTTONPIN' was not declared in this scope
attachInterrupt(digitalPinToInterrupt(__BUTTONPIN), pushButton, FALLING);
^~~~~~~~~~~
C:\Users\The Remington\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\variants\esp32da/pins_arduino.h:11:40: note: in definition of macro 'digitalPinToInterrupt'
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
^
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino: In function 'void pushButton()':
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino:182:41: error: '__BUTTONPIN' was not declared in this scope
detachInterrupt(digitalPinToInterrupt(__BUTTONPIN));
^~~~~~~~~~~
C:\Users\The Remington\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\variants\esp32da/pins_arduino.h:11:40: note: in definition of macro 'digitalPinToInterrupt'
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
^
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino:183:11: error: expected primary-expression at end of input
btnFlag =
^
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino:183:11: error: expected '}' at end of input
C:\Users\The Remington\AppData\Local\Temp.arduinoIDE-unsaved202317-8436-109ge7c.xnwa\sketch_feb7c\sketch_feb7c.ino:181:29: note: to match this '{'
IRAM_ATTR void pushButton() {
^
exit status 1
Compilation error: '__BT_NAME' was not declared in this scope
Any idea, why this not work with 0x80 on ios devices ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.