There's an event for camera being disconnected, but is there a way to detect that a new camera was connected to the system?
Or repeatedly asking for camera list is my best bet?
There's an event for camera being disconnected, but is there a way to detect that a new camera was connected to the system?
Or repeatedly asking for camera list is my best bet?
Read the EDSDK documentation...
See EdsSetCameraAddedHandler
I can't give any examples as you have not provided any info about which language you are using.
Use: https://www.codeproject.com/Articles/688276/Canon-EDSDK-Tutorial-in-Csharp It is pretty old and as far as i know the developer doesn't support this anymore.
But it still works great for the most usecases. There is an event that fires if a camera gets added:
APIHandler = new CanonAPI();
APIHandler.CameraAdded += APIHandler_CameraAdded;
In the APIHandler_CameraAdded event you can change the camera settings or do whatever you want.