wifi

How to connect with Wifi Camera ios

為{幸葍}努か 提交于 2019-12-02 12:56:14
问题 I need some help, in my project i need to get images captured by wifi camera . I need to connect with that camera with IPAddress and get those images. I am completely new to this topic, so please suggest me that 1) How to connect with wifi cameras using IPAddress 2) How to get captured pictures automatically Thanks in advance... 回答1: In iOS you can't connect the WIFI network from your application. Apple has not grant permission to access the WIFI setting inside the other app. You only get the

ipad to ipad file transfer via wifi

这一生的挚爱 提交于 2019-12-02 11:28:36
What is the best method to transfer file via wifi from one ipad to another?I know how to handle the wifi network connection.But i need to know the most efficient way to transfer imajges , video etc from one ipad to another You may want to look at https://github.com/robbiehanson/CocoaAsyncSocket - you can use it as a TCP server/client to transfer files between ipads. I've used it between a laptop and iPad, but it will work iPad to iPad also. 来源: https://stackoverflow.com/questions/6570929/ipad-to-ipad-file-transfer-via-wifi

Airplane mode on iPod Touch — revisited

做~自己de王妃 提交于 2019-12-02 11:16:29
问题 The situation is this: We have an app that records sound. If the app is running on a second generation iPod Touch and airplane mode is OFF then there are periodic noises that end up in the recording due to the WIFI activity of the iPod. So I want to detect that we're running on a second generation iPod Touch (which I know how to do), and, if so, tell the user to turn on airplane mode, if it's not already on. Note that it's NOT SUFFICIENT to simply know that WIFI is unreachable as the iPod

Objective-C: NSCommand “airport -s” returning empty

本小妞迷上赌 提交于 2019-12-02 10:57:58
问题 I'm trying to run airport command to scan my wireless networks. Right now, the approach is to use NSTask. I'm running it as follow: NSString *command = [NSString stringWithFormat:@"/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s"]; NSTask *task = [[NSTask alloc] init]; [task setLaunchPath:@"/bin/sh"]; NSArray *args = [NSArray arrayWithObjects:@"-c", command, nil]; [task setArguments: args]; NSPipe *pipe = [NSPipe pipe]; [task setStandardOutput:

Android Wifi broadcast receiver not working as expected

痴心易碎 提交于 2019-12-02 09:57:31
I have to get the WiFi ssid whenever phone connects to new WiFi network. I registered the following receiver `registerReceiver(this.mybroadcast, new IntentFilter(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION));` This part of code works perfectly. But in onReceive method, NetworkInfo info = intent.getParcelableExtra(WifiManager.EXTRA_WIFI_INFO)); always returns null. I tried EXTRA_NETWORK_INFO as well, but it also returns Null. I can't use this.registerReceiver(this.mybroadcast, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));, as the service will stop/start after n minutes and

Android wifi's signal strength [duplicate]

女生的网名这么多〃 提交于 2019-12-02 09:48:32
Possible Duplicate: Android: How to monitor WiFi signal strength Is there a way to know the signal strength of a wifi network using code? Naveen Take a look at these: getScanResults() level http://developer.android.com/reference/android/net/wifi/WifiManager.html http://developer.android.com/reference/android/net/wifi/ScanResult.html 来源: https://stackoverflow.com/questions/5411626/android-wifis-signal-strength

MQTT on Arduino not working

浪子不回头ぞ 提交于 2019-12-02 09:01:35
I'm using Arduino Uno and Wi-Fi shield. I'm trying to implement MQTT protocol for communication and I tried two libraries for Arduino. First one is Knolleary's PubSubClient: http://pubsubclient.knolleary.net/ . I modified original example a little bit to use WiFi module instead of ethernet. Sending works but not every time (sometimes, the message is sent and sometimes not). But receiving via callback function doesn't work at all. Here is my code: /* Basic MQTT example with Authentication - connects to an MQTT server, providing username and password - publishes "hello world" to the desired

WifiManager.getConfiguredNetworks always returns empty list

戏子无情 提交于 2019-12-02 08:12:18
问题 I am trying to connect to an open wifi network. When I open my app it should turn on wifi and connect to the network defined as below. The problem is that WifiManager.getConfiguredNetworks always returns me an empty list. I have tried using locks too without success. WifiConfiguration conf = new WifiConfiguration(); conf.SSID = "\"" + networkSSID + "\""; conf.status = WifiConfiguration.Status.ENABLED; conf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); conf.priority = Integer.MAX

Is it possible to programatically enable wifi on Android 10 devices?

蓝咒 提交于 2019-12-02 07:53:20
Since setWifiEnabled is deprecated on Android 10, how does one programatically enable wifi on Android 10 devices? Is it not possible to programatically enable wifi at all on Android 10+ (SDK 29) ? No, This is not possible to enable or disable Wi-Fi programmatically from Android-10 API level 29 [ Until google provides an alternative solution ]. For applications targeting Build.VERSION_CODES.Q or above, this API will always return false and will have no effect. If apps are targeting an older SDK ( Build.VERSION_CODES.P or below), they can continue to use this API. There is an issue 128554616

WifiManager.getConfiguredNetworks always returns empty list

故事扮演 提交于 2019-12-02 07:21:41
I am trying to connect to an open wifi network. When I open my app it should turn on wifi and connect to the network defined as below. The problem is that WifiManager.getConfiguredNetworks always returns me an empty list. I have tried using locks too without success. WifiConfiguration conf = new WifiConfiguration(); conf.SSID = "\"" + networkSSID + "\""; conf.status = WifiConfiguration.Status.ENABLED; conf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); conf.priority = Integer.MAX_VALUE; WifiManager wifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE); wifiManager