Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I am trying to create an IBTMgr object.  In the reference API it says: "To create an IBTMgr object, see instruction in class header file."  In the file AEEIBTMgr (which I assume is the previously mentioned "class header file" it says: To create an IBTMgr object, see instruction in class header file. 

 

What is the proper way to create an IBTMgr object? 

 

I tried doing it using ISHELL_CreateInstance like so: 

ISHELL_CreateInstance (SHELL, AEEIID_IBTMgr,( void** )&pIBTMgr); 

 

and this returns AEE_ECLASSNOTSUPPORT, which leads me to believe that perhaps I'm instantiate the object correctly but it's not supported on this particular class platform.  

 

Privilage/dependency: AEECLSID_BT and AEECLSID_BTMg
nErr = ISHELL_CreateInstance(pMe->applet.m_pIShell, AEECLSID_BT, (void**)&pMe->pBT);
 
  IBT_GetObject(po, AEECLSID_BTMgr, NULL, 0, ppBTMgr);
 
search API ref for AEECLSID_BT and AEECLSID_BTMg for more info.

Privilage/dependency: AEECLSID_BT and AEECLSID_BTMg
nErr = ISHELL_CreateInstance(pMe->applet.m_pIShell, AEECLSID_BT, (void**)&pMe->pBT);
 
  IBT_GetObject(po, AEECLSID_BTMgr, NULL, 0, ppBTMgr);
 
search API ref for AEECLSID_BT and AEECLSID_BTMg for more info.

nErr = ISHELL_CreateInstance(pMe->applet.m_pIShell, AEECLSID_BT, (void**)&pMe->pBT);
 
  IBT_GetObject(pMe->pBT, AEECLSID_BTMgr, NULL, 0, ppBTMgr);

nErr = ISHELL_CreateInstance(pMe->applet.m_pIShell, AEECLSID_BT, (void**)&pMe->pBT);
 
  IBT_GetObject(pMe->pBT, AEECLSID_BTMgr, NULL, 0, ppBTMgr);

Well here's what i have so far: 
 
int n ;
IBTMgr *pIBTMgr = NULL;
IBT* pIBT = NULL;
n = ISHELL_CreateInstance(pSHell, AEECLSID_BT, (void**)&pIBT);
if (n == AEE_SUCCESS){
DBGLOG("IBT object created succesfully");
n = IBT_GetObject(pIBT, AEECLSID_BTMgr, NULL, 0, (void**)&pIBTMgr);

}
The problem is that IBT_GetObject() returns error code 21: AEE_EPRIVLEVEL
 
AEEBTMgr.bid says: 
Privileges:
   AEECLSID_BT
   AEECLSID_BTMgr
What does this mean?  These are class ids not priviledge level ids.  I tried adding them to my privs in my .cif file but they don't change anything.  I also have the following priviledges: 
AEEPRIVID_BT
AEEPRIVID_BTManager
AEEPRIVID_BTDevDBControl
AEEPRIVID_BTDiscoverer
AEEPRIVID_BT_DEV_WRITE
 

Well here's what i have so far: 
 
int n ;
IBTMgr *pIBTMgr = NULL;
IBT* pIBT = NULL;
n = ISHELL_CreateInstance(pSHell, AEECLSID_BT, (void**)&pIBT);
if (n == AEE_SUCCESS){
DBGLOG("IBT object created succesfully");
n = IBT_GetObject(pIBT, AEECLSID_BTMgr, NULL, 0, (void**)&pIBTMgr);

}
The problem is that IBT_GetObject() returns error code 21: AEE_EPRIVLEVEL
 
AEEBTMgr.bid says: 
Privileges:
   AEECLSID_BT
   AEECLSID_BTMgr
What does this mean?  These are class ids not priviledge level ids.  I tried adding them to my privs in my .cif file but they don't change anything.  I also have the following priviledges: 
AEEPRIVID_BT
AEEPRIVID_BTManager
AEEPRIVID_BTDevDBControl
AEEPRIVID_BTDiscoverer
AEEPRIVID_BT_DEV_WRITE
 

you require these privilages/dependency: AEECLSID_BT and AEECLSID_BTMg and not AEEPRIVID_BT & AEEPRIVID_BTManager.
Open CIF in GUI mode. Click on modules tab then click on Dependencies tab.
Under this dependency tab add AEECLSID_BT and AEECLSID_BTMg.

you require these privilages/dependency: AEECLSID_BT and AEECLSID_BTMg and not AEEPRIVID_BT & AEEPRIVID_BTManager.
Open CIF in GUI mode. Click on modules tab then click on Dependencies tab.
Under this dependency tab add AEECLSID_BT and AEECLSID_BTMg.

I added the class IDs to dependencies and not priviledges and the AEE_EPRIVLEVEL error went away (replaced by AEE_EFAILED -- but that's okay)
 
Thanks. 

I added the class IDs to dependencies and not priviledges and the AEE_EPRIVLEVEL error went away (replaced by AEE_EFAILED -- but that's okay)
 
Thanks. 

which simulator target are you using?

which simulator target are you using?

I'm not using a simulator

I'm not using a simulator

then it is possible that the device does not supports the API.

then it is possible that the device does not supports the API.