easybob95 If i to the same with an ASI294MC PRO, what will be the camera id return ? Will it be "ZWO ASI294MC PRO" ?
I do not have an ASI294MC PRO. However, here is a list (cut and pasted) of some of the ZWO cameras that I have, obtained from the ZWO SDK for macOS (Xcode). The square brackets are from my printf().
[ZWO ASI294MC] (pancake version, not the cooled version)
[ZWO ASI183MC Pro]
[ZWO ASI2600MM Pro]
[ZWO ASI2600MC Pro]
[ZWO ASI6200MC Pro]
Notice that PRO is in Capitalized Lower case ASCII. Not all Upper case, per your question.
However, good engineering would suggest first turning the Name string into all upper case (or all lower case) and compare with the target strings, just in case future cameras take a different format.
Chen
P.S.,
Code snippet:
.......................................
cameras = ASIGetNumOfConnectedCameras() ;
if ( cameras > 0 ) {
ASIGetCameraProperty( &cameraInfo, 0 ) ;
printf( "[%s]\n", &cameraInfo.Name[0] ) ;
}
........................................