Comments (13)
I can't really help you if you don't show me your code. :(
from wifi.
Sorry I didn't have internet access so I am answering after 4 days:)
Here is what I do
main.m:
int main (int argc, const char * argv[])
{
@autoreleasepool
{
NSLog(@"\n\n\n MSManagerStarted 01 \n\n\n");
// insert code here...
MSManager *server = [[MSManager alloc] init];
NSDate *now = [[NSDate alloc] init];
NSTimer *timer = [[NSTimer alloc] initWithFireDate:now
interval:.01
target:server
selector:@selector(start)
userInfo:nil
repeats:NO];
NSRunLoop *runLoop = [NSRunLoop currentRunLoop];
[runLoop addTimer:timer forMode:NSDefaultRunLoopMode];
[runLoop run];
}
return 0;
}
here is MSManager's class start
method implementation:
- (void)start
{
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(managerDidFinishScanning) name:kDMNetworksManagerDidFinishScanning object:nil];
[[DMNetworksManager sharedInstance] scan];
}
But after it is scanned nothing happens. I mean 'managerDidFinishScanning' isn't called. Can you help?
from wifi.
Maybe try to use CFRunLoopRun()
instead of your NSDate, NSTimer and NSRunLoop code?
Also, can you check the syslog? Maybe you're missing an important entitlement.
from wifi.
There is no problem with the entitlements. Even with CFRunLoopRun()
it doesn't work. Any other ideas?
from wifi.
Can you add an NSLog
at the beginning of DMNetworksManager's _scanDidFinishWithError
method?
from wifi.
Nothing happens. It gets stuck at _scan
method
Have you ever used this in a launch daemon?
from wifi.
Try CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false)
. Also, make sure that this is the last thing that your main
function does.
from wifi.
This doesn't work either:(
I can solve my problem another way. What I am trying to do is I want to connect to a given network (the ssid and encryption model and password is given). What i used to do was scan for networks and then if the given said network was scanned then i associated with it. Can I do this another way if there is a problem with scanning?
from wifi.
I think it's because of the entitlements thing. Can you run ldid -e YourBinary
on your daemon? ldid
is available in Cydia.
from wifi.
here is the result:
`
from wifi.
Hm, looks correct. No idea then.
from wifi.
any help with the network association thing? I mean connect to network without scanning.
from wifi.
See -[DMNetworksViewController tableView:didSelectRowAtIndexPath:]
.
from wifi.
Related Issues (20)
- Can't configure your project HOT 2
- Linker error while integrating files HOT 11
- Error While integrating in Xcode5 HOT 1
- Hey, I don't jailbreak my device,Can I use the MobileWiFi.framework? HOT 4
- MobileWiFi on iOS 8? HOT 18
- MobileWiFi on iOS 8.1? HOT 1
- How can I get the the current connected network HOT 1
- Compile HOT 7
- Wifi Scanning HOT 1
- Not able to install HOT 1
- how do you know "com.apple.wifi.linkdidchange" HOT 11
- iOS 8.1 compile error HOT 1
- Can't Compile HOT 8
- how to build this project? HOT 6
- how to get wifi channel? HOT 2
- How do you build it ?
- A method error occured after the make command exectued when I build this project HOT 4
- Also in? HOT 1
- Hi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wifi.