wifi

wifi chat between two or more android devices

橙三吉。 提交于 2019-12-10 09:41:19
问题 I want to develop an chat application to chat between two or more android devices using wifi network.The application should be able to send or receive strings from each other. I have an experience of using Bluetooth network between pc and android. Can any give me any suggestion or right direction. Thanks in advance. 回答1: You can be able to chat between two android devices in Android Version 4.0 .There is an API called ' Wifi P2P '.More information can be had from here: http://developer

iOS UIBackgroundMode remote-notification doesn't work on 4G

天大地大妈咪最大 提交于 2019-12-10 03:00:51
问题 I'm testing push notifications with content-available=1, and they don't seem to be delivered to the app in the background unless on Wi-Fi. I have a simple log statement at the beginning of the push notification handler: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^) (UIBackgroundFetchResult))completionHandler { NSLog(@"Notification received: %@", userInfo); completionHandler(UIBackgroundFetchResultNewData

Android Find the device's ip address when it's hosting a hotspot

跟風遠走 提交于 2019-12-10 02:39:51
问题 I need to find the device's ip address when it's hosting a hotspot. I've used this code so far : //if is using Hotspot for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) { NetworkInterface intf = en.nextElement(); if (intf.getName().contains("wlan")) { for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) { InetAddress inetAddress = enumIpAddr.nextElement(); if (!inetAddress.isLoopbackAddress() &

raspberry pi无线网卡配置

非 Y 不嫁゛ 提交于 2019-12-10 02:01:50
raspberry pi的操作系统采用最新的raspbian操作系统,该操作系统是基于Debian 7.3,内核版本为3.10.25+。USB wifi适配器采用的是TP-LINK TL-WN725N。将TL-WN725N插入到raspberry pi的USB口后,在串口终端使用命令lsmod可以看到8192cu的内核模块被加载(说明该无线网卡驱动已经驱起来了),与此同时在串口终端使用命令ifconfig可以看到wlan0的相关信息。我们要做的就是修改/etc/network/interface文件,修改成功后保存,最后执行/etc/init.d/networking restart即可。下面是我的/etc/network/interface配置文件。 auto lo iface lo inet loopback iface eth0 inet dhcp auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "myssid" wpa-psk "mypsk" 其中: auto wlan0 :说明系统启动时自动启动wlan0; allow-hotplug wlan0:允许热插拔wlan0; iface wlan0 inet dhcp:对wlan0网口使用dhcp方式获取IP地址; wpa-ssid "myssid"

ways for a client to identify the specific access point it is connected to within a single SSID?

霸气de小男生 提交于 2019-12-09 23:52:28
问题 The problem is as follows - there's a university campus wide wifi connection with a single SSID, say "campus-wifi". The user freely roams around campus, and the usual hand-off between access points occurs. My question is, is there any information at any layer of the network stack that allows the client to identify (any unique identifier is fine) the specific access point they're connected to, rather than simply the fact that they are connected to "campus-wifi"? If it's relevant, I'd like to

android detect locatoin using WIFI

▼魔方 西西 提交于 2019-12-09 19:04:49
问题 We can detect code using gps, i want to detect location via wifi ??? how can i do that ? i want two threads simulataniously running one detecting locaiton using GPS another detecting using WIFI. 回答1: Check out this link and "public static final String NETWORK_PROVIDER " on that page. Also I think this open source project uses both gps and network location: Link . Hopefully a good example. 回答2: public class FastMainActivity extends Activity { Button searchBtn = null; Intent locatorService =

Detecting android devices connected to Wifi

六眼飞鱼酱① 提交于 2019-12-09 18:38:05
问题 I want to make an android application that connects to a Wifi network, say network SSID = "ABC".Assume that it is connected to the Wifi ABC. After connecting to ABC, i would want my application to display the ips of all the android devices that are connected to the same wifi ABC network. How can i achieve that? Thanks 回答1: Check out the file: /proc/net/arp on your phone. It has the ip and MAC addreses of all the other devices connected to the same network. However I am affraid you wont be

Detect wifi connectivity in c#

家住魔仙堡 提交于 2019-12-09 16:06:33
问题 I am working on an asp.net (or winforms) app that is supposed to detect wifi connectivity and strength. The intention is to provide the field agents with an indicator that they can connect to our main office What would I need to detect wifi connectivity? 回答1: You can't do it in ASP.NET. ASP.NET is a server-side technology which renders client-side browsable code. In order to do this, you would have to develop something that is embedded in the page (ActiveX, Java, Flash, Silverlight) and even

Wifi socket communication with android phone

荒凉一梦 提交于 2019-12-09 13:52:55
问题 I would like to ask, how this wireless socket communicates with android phone? I am trying to buy a wireless socket, that I could control through my own code. These all wireless socket already has app developed for them. It is possible to get source code or know how to communicate with this wireless socket and control? 回答1: As mentioned, use Wireshark (or Shark for Root if you have an Android device that is rooted). That socket looks very similar to one Aldi Australia are selling (under the

iOS6.1: Problems while trying to access WiFi RSSI (MobileWiFi.framework)

流过昼夜 提交于 2019-12-09 13:39:49
问题 I'm trying to access the RSSI values of several APs around me using an iPod Touch 4G with iOS6.1 and Xcode 4.6.3 with a valid Provisioning Profile. I've read some discussions about this topic and the best way to do this seems to be using the private Framework MobileWifi. Since this project is for private usage only I'm ok with that. According to this website I need a special entitlement in order to access the MobileWiFi functions. I've never worked with entitlements before, but according to