Hi ,
I want to integare an ios native plugin with Rho api which gives wifi signal strength.
I tried following code ,
int getSignalStrength()
{
void *libHandle = dlopen("/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony", RTLD_LAZY);
int (*CTGetSignalStrength)();
CTGetSignalStrength = dlsym(libHandle, "CTGetSignalStrength");
if( CTGetSignalStrength == NULL) NSLog(@"Could not find CTGetSignalStrength");
int result = CTGetSignalStrength();
dlclose(libHandle);
return result;
}
which always returns '0'.
Any thing wrong here?
Any one have alternate code to get wifi signal strength on ipod.