Is there a way to get the WIFI signal strength for iPod via Rho System API(Rhodes 3.5.1.12)?
I have created Rhodes extension which uses CTGetSignalStrength(). When we have created ipa file which includes the Rhodes extension that provides WIFI signal information code, the value which returned back from the above mentioned code is 0 and it is not returning the correct value back.
Code used:
int signalinformation_get_signal_strength() {
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;
}
Is anything missing? Will it work for iPod also?