wifi

Keep WiFi Connection active even iPad is going into sleep mode/locked in iOS 5

自作多情 提交于 2019-12-06 15:47:55
I know that on iOS 4 , the Wi-Fi connection used to be persistent, so going into sleep mode/locked kept the connection ON . This was modified in the next version iOS 5 to improve battery life. In iOS 5 , requiring the device to be plugged into a power source in order to have a persistent Wi-Fi connection. Wi-Fi connection is disconnecting automatically after iPad is going into sleep mode/locked . Here comes my problem, I'm sending a bulk chunk of data through WiFi which may take too much time. So the user have to wait up to the transaction complete. iPad may switch into sleep mode/locked while

[iPhone]: How send output stream via wireless network?

此生再无相见时 提交于 2019-12-06 15:11:50
问题 I want to write an app for a certain type of printer to print some text via wifi for iPhone. iPhone can join an existing wifi network by the Settings app, but how to create an output stream for the network so that the app can use it to send command to printer? I mean the wifi connection is set up already, how to get something like NSOutputStream to write data to it? 回答1: I'm not sure what protocal you wifi printer uses (or wifi printers in general) but you are in luck, iPhone apps can be

iphone problem receiving UDP packets

放肆的年华 提交于 2019-12-06 14:58:54
问题 I'm using sendto() and recvfrom() to send some simple packets via UDP over WiFI. I've tried using two phones, and a simulator, the results I'm getting are: Packets sent from phones -> recieved by simulator Packets sent from simulator -> simulator recvfrom remains blocking. Packets sent from phones -> other phone recvfrom remains blocking. I'm not sure how to start debugging this one, since the simulator/mac is able to receive the the packets, but the phones don't appear to be getting the

iPhone VOIP in background

耗尽温柔 提交于 2019-12-06 14:32:29
问题 I am developing an iPhone application that communicates with a non iOS device through Wi-Fi. My application is using VOIP.I have configured the streams and added the necessary UIBackgroundModes into my plist . The problem is that the application is not receiving any information from the external device, When it enters in background. Could somebody tell me if I am missing something? 回答1: Not sure about actual problem. Make sure following As per iOS background VOIP application it will allow

Getting IP addresses of the PC's available on wifi network in android

旧城冷巷雨未停 提交于 2019-12-06 14:23:34
问题 I am able to establish connection between android and PC via Wi-fi. But this is done by hard coding the the IP address of the PC (server) in the android program. But I wanted to get IP addresses of the PC's available on the Wi-fi network programmatically. So please let me know how to scan for PC's on the network and get their respective IP address. 回答1: can you not multicast a UDP packet on the network which the server listens for and responds to with a packet containing the ip address of the

How to use android to connect to an ESP8266 access point without internet in a stable way?

孤者浪人 提交于 2019-12-06 13:24:39
I have a Wifi Micro controller ESP8266 which also has an access point. I have referred to other blogs which talk about programmatically connecting to an access point and tried both the way Using the exposed standard APIS wifiManager.enableNetwork(netId, true); wifiManager.saveConfiguration(); wifiManager.reconnect(); Using the APIs which have @ hide on them wifiManager.connect(netId, ActionListener) The problem I am facing is that some time after i connect to the access point its getting disconnected from the esp8266 access point and connecting back to my router in both the above mentioned

Volley Request over https only works with Wifi (wlan) but not for 3G/GPRS (umts)

孤街醉人 提交于 2019-12-06 13:01:58
问题 Because I was instructed to ask this issue in my own question I'm doing this here. To see Original Topic in which I first asked my question (deleted now). I got stuck with the same Problem and unfortunately the answers of the author aren't helpful. To introduce my issue a little bit more in detail, I work with a self signed certificate on my Tomcat 8 (v8.0.15) server on the internet with Java 8 (v8.0.25 - JDK). There I host my Java EE Application, which is the backend for my Android

How to check network provider name in iOS programming?

天涯浪子 提交于 2019-12-06 13:01:03
问题 I need to check whether device has been connected properly to "My-Wifi" network or not. If it is connected then I will send some data to server otherwise not. Right now I am just checking with the Internet connection, using Reachability class. So how to check that? 回答1: You can make use of CNCopySupportedInterfaces() call. CFArrayRef interfaces = CNCopySupportedInterfaces(); CFIndex count = CFArrayGetCount(interfaces); for (int i = 0; i < count; i++) { CFStringRef interface =

connect to a wifi network using batch or vb script

本秂侑毒 提交于 2019-12-06 12:14:53
问题 I am trying to write a batch to automatically connect to a WiFi connection that has been set before on the system, I have tried using some other methods such as using NirCMD but unfortunately that doesn't work either. any help would be appreciated thanks in advance 回答1: You can use this command from a dos console: netsh wlan connect name=[wireless network] 来源: https://stackoverflow.com/questions/19039515/connect-to-a-wifi-network-using-batch-or-vb-script

Wifi information in Java

孤人 提交于 2019-12-06 10:21:33
问题 How can I get the MAC address , SSID , and signal strength of wifi routers nearby in Java ? Preferably system independent, if not then Windows. 回答1: I don't really think there's any system independent way to know that from Java. On Windows you should be able to do that using Wireless LAN APIs, but you most probably need some JNI to have access to them. 回答2: To get the Mac address you need to query the ARP cache. Which is not trivial and system dependant. More here: Query ARP cache to get MAC