Hi all.
here I like to have ESP32 BLE send 'TAKE_PICTURE' and the APP to directly take a picture and saved, didn't get there.
need help please.
Thanks
p110i_esp32_ble_O_CAM_Nb (1).aia (249.4 KB)
Hi all.
here I like to have ESP32 BLE send 'TAKE_PICTURE' and the APP to directly take a picture and saved, didn't get there.
need help please.
Thanks
p110i_esp32_ble_O_CAM_Nb (1).aia (249.4 KB)
What have you debugged ?
Suggest you set a notifier here to check that the message has reached and started the clock timer.
You should also check that that the procam is initialised
You also appear to be setting a procam output to a diferent location for the "second" and subsequent images ?
First, rework your Screen.Initialize
blocks, especially the arbitrary (pointless) request for permissions (which, moreover, no longer exists for WRITE
since Android 11).
The process of requesting Bluetooth permissions has been explained many times here in the forum, not least by me.
Thanks.
actually, I made it like this, still:
Thanks.
I rewrite the screen,Initialize no much changes.
See here:
Do not ask for all permissions at the same time!
See here about how to ask correctly for Bluetooth permissions
And move the lower part for example into a button click event
Taifun
For Procam functionality, make a separate, simple as possible example aia project. does that take a picture ?
thanks.
I'll test that.
the global.device is for ESP32 BLE connection, I try to use ESP32 BLE to control the ProCamera to take picture not success.
thanks.
that code was working well to take picture and save it.
I made changes try to use only one button and moved ProCamera ini into screen1.ini, it works for the APP first time run, the camera doesn't come up when APP restart.
problem here is about try to use ESP32 BLE control the ProCamera to take picture, I added the well run ESP32 BLE blocks onto it, it doesn't take picture now.
If you are getting plain black images taken, you may need to set a timer to give everything time to setup.
I did a small test, using firebaseDataChanged with a node value of true/false - if true take a picture.
I left this value set to true, and refresh the companion, and got a black picture. Adding a clock with a time interval of 3 seconds, on refresh it took a picture
Thanks.
I am trying to test it, where did you get: call.File1.MakeFullPath?
Try the file component
Taifun
great.
Thanks.
Sorry.
where can find : firebase db?
Experimental
but why not try a timer with your existing code and the ESP32 ?
You need to ask for camera permission before you try to initialise procam.
You should initialise procam before you start the clock, which is to take the picture.
Thanks.
I made the blocks borrow you picture and added 3000, got white screen at first start, and black screen at restart.
how to fix?
any where have a example that MIT APP received ESP32 siginal to take picture?
If this is with a compiled app, then you might need to restart because I was lazy with the permissions request.
Is your firebase setup correctly to return true or false for a tag called take ?
Sorry, can't help with ESP32.