Попробуйте что нибудь типа
#include <rconnmon.h>
{
RConnectionMonitor monitor;
monitor.ConnectL();
TUint count;
TRequestStatus status;
TUint ids[15];
monitor.GetConnectionCount(count, status);
User::WaitForRequest(status);
if(status.Int() != KErrNone)
{
// handle error
}
// fill connections array in
TUint numSubConn;
for(TInt i = 1; i <=count; i++)
{
TInt ret = monitor.GetConnectionInfo(i, ids[i-1], numSubConn);
if(ret != KErrNone)
{
// error handling
}
}
// get signal strenght for the active connection ids[0]
TInt strength; // in DBm
monitor.GetIntAttribute(ids[0], 0, KSignalStrength, strength, status);
User::WaitForRequest(status);
if(status.Int() != KErrNone)
{
// handle error
}
// etc...
monitor.Close();
}
С уважением.
|