ios plugin to get wifi signal strength

171 views
Skip to first unread message

Sowjanya Mithra

unread,
Mar 3, 2014, 2:00:25 AM3/3/14
to rhom...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages