For this task I would recommend using dedicated hardware, i.e. a spectrum analyzer capable of measuring duty cycle, but since you are asking on SO, I assume that you are looking for a computer/software-based solution. The feature you are looking for is not commonly found in WiFi chipsets. If you...

You can use the isScanAlwaysAvailable() method in WifiManager. I just tested this on Android 4.4, and it works. To query the state, and show the prompt if it's disabled, use this code (I put it in onCreate()): WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); if (Build.VERSION.SDK_INT >= 18 ) { if (wifiManager.isScanAlwaysAvailable())...

To be able to send data over the wifi you need to be connected to the same network . For example if you use wifi direct to transfer data between 2 devices then these devices will be connected to each other over the wifi interface and hence you cannot be...

You need to start by building an Isis2 application program, and this would have to be done using C/CLI or C++/CLI. C++/CLI will be easier because the match with the Isis2 type system is closer. But as I type these words, I'm trying to remember whether Mono actually supports C++/CLI....

Of course it is possible. Broadcasting SSID is not only the feature of (wireless) routers but wireless access points in general. Wireless access point can be also a router (like square is also a rectangle, but not every rectangle is square). You can for example: - take small computer with...

Consideration to use HLK-RM04. Have clear the concept of HTTP request (Headers and Body in Raw Format). Configure the time out of your HLK-RM04. Send information (HTTP Request) through SerialPort at the same BaudRate of the HLK-RM04. Good luck....

It is actually possible to control 12 servos with arduino uno. But if you use a wi-fi module, you need to give it 2 pins. So you can connect 10 servos. See this link: http://2xod.com/articles/Arduino_Wifi_With_Hi_Flying_HF-LPT100_or_USR-WIFI232/...

To extend on @ianhanniballake's answer, I've found that binding the network using ConnectivityManager.setProcessDefaultNetwork() prevents roaming and allows for full TCP access. Thus, within the onAvailable() callback you could bind the application process to that network rather than opening a connection to a particular URL. ConnectivityManager connection_manager = (ConnectivityManager) activity.getApplication().getSystemService(Context.CONNECTIVITY_SERVICE); NetworkRequest.Builder...

This is actually not programming related question. Most of the access points use multiple mac addresses for different wireless interfaces. For instance the mac address of 5 GHZ or 2.4 GHZ are different then each other and also they are different then the mac address used for announcing that network....

For being able to connect devices for peer to peer connection you have the following options: 1. Wifi Direct 2. Bluetooth 3. Wifi Hotspot Here is a basic tutorial on how to build a chat over wifi direct http://developer.android.com/guide/topics/connectivity/wifip2p.html And for bluetooth http://developer.android.com/samples/BluetoothChat/index.html You can also import these sample projects...

When you press the WPS button on your home router, you are completing a circuit that tells the router to emit a signal allowing nearby devices to connect. There is no remote method to control this physical mechanism & that is why it is recommended as a secure set-up. In...

Update It turns out that it isn't possible, there is no API/Framework/BOOL value that can do this because Apple havn't added any kind of ability to check to see if the WiFi is switched on or off for developers. As explained nicely here: http://stackoverflow.com/a/12906461/4657588 Then this SO post should be...

Make use of the data transfer based on UDP protocol. Presence of noise may create some interference in the communication. Here is a complete demonstration of Audio Chat Android Application using UDP packets. You can receive as well as call a particular contact. All the peoples in the same network...

For Bluetooth in iOS, you have CBPeripheralManager (in CoreBluetooth Framework). To check for bluetooth connection, you declare your class as delegate of CBPeripheralManager then create a local variable: var myBTManager = CBPeripheralManager(delegate: self, queue: nil, options: nil) then, your class must implement the callback to get noticed when your Bluetooth...

While in general it's good to be suspicious about hijacked or modified requests on open wifi networks, in this case it appears to be expected behavior for public wifi networks. Specifically, many public wifi networks require authentication either for paid access or to accept terms of service. To accomplish this,...

The last one is pretty straightforward. Use: [request setTimeoutInterval:5]; the second question depends on what are you doing with the request in your app. Sometimes it may be appropriate to try and call api 2 or 3 times before going to the error path of your code....

The documentation for wifi.Scheme.for_cell says it takes a passkey argument: classmethod for_cell(interface, name, cell, passkey=None) So with some passkey, you would call scheme = Scheme.for_cell('wlan0', 'home', cell, passkey) Looking at the source code for that package, the TypeError raised there is a bug, or at least a sign of hasty...

GNU Debugger (remote server) GDB is a source-level debugger that supports C among other programming languages, capable of breaking programs at any specific line, displaying variable values, and determining where errors occurred. To install GNU Debugger and GNU Debugger (remote server) in all currently supported versions of Ubuntu (which is...

You're setting the progress bar to -100? Isn't that your error? I'm pretty sure the lowest permitted value for a progress bar is... 0. See the ProgressBar API documentation, you can't even set a minimum value for a progress bar (but you can set a maximum).

This does the same job what you want to achieve in above. It notifies you whenever SSID changes In order for you to get those notifications you need to be holding on to an instance of CWInterface. Your .h would look like this #import <Cocoa/Cocoa.h> @class CWInterface; @interface AppDelegate :...

well this was funny but after realizing its about serial port i tried few things and the reason for me to wait serial port is : while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } i didnt care what for this used and...

You need to implement BroadcastReceiver that listens to BluetoothAdapter.ACTION_STATE_CHANGED (link). It should disable it back and show some information about your lock to user. private final BroadcastReceiver mReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) { final int...

First, to do what you want, you have to be the only one to command the wpa_supplicant and dhclient. So you have to kill every network managers that you have. So you have to kill your network-manager-applet. Then, your file /etc/wpa_supplicant.conf have to include the ctrl_interface information to be able...

There are 2 options: your Wifi Bridge is doing some NAT and you have to port-forward the port for printing in the bridge itself. (9100 for JetDirect for example). than you have to add the printer with the bridge IP on you notebook/pc. the bridge gets an IP from you...

The WlanEnumInterfaces populates the field you provide it with the address of a struct. You are passing in the address of a struct rather than the address of an address. Use PointerByReference to get the address of the struct, e.g. PointerByReference pref = new PointerByReference(); Wlanapi.INSTANCE.WlanEnumInterfaces(handle, null, pref); WLAN_INTERFACE_INFO_LIST list...

Try putting an ampersand at the end of the command, it will run in background allowing the next command to execute. iw mlan0 connect $SSID & udhcpc -i mlan0 while : ; do echo "Pausing until connection established" mlan0_ip=`/sbin/ifconfig mlan0 | grep 'inet addr:' | cut -d: -f2 | awk...

In your router configuration settings, you will have to change the WAN Access Type to PPPoE for DSL connection in internet setup (you can also use setup wizard). After that you will be asked for the username and password. Also if your router's MAC address is not registered then you...

I think what you want/need to do is to create a background service, configured to run periodically using the AlarmManager, that will check whether a reliable network resource is available (i.e. ping a server that you trust to be online all the time). If your ping action succeeds than you...

Bluetooth / LE: Not possible without Jailbreak Wifi-Direct: Not supported by iOS Unfortunately, there is no way to communciate in both ways without a wifi network both are connected to. While this means it also works without an Internet connection, it still requires a wifi network....

Is there any particular reason you need to use variable for that? This can be easily achieved without variables. step 1 set a profile with a State -> Net -> Wifi connected in a task add action set variable name it wifiConnected and set it to "yes" or "true" or...

As far as i can see it, your Context is null. You have a private Variable Context at the top of your class, but you never assign anything to it, so it's null. Give your AccessPoint a constructor and put something like context = getContext(); inside of it....

Airport wifis and other public wifis often block access to any port other than default http (80). If your website is running on a different port (8080, for example), it might be blocked. The fix is to reconfigure your server so that the site is accessible from port 80.

http://developer.android.com/guide/topics/connectivity/wifip2p.html#api Hello please see above... To answer your question, the peer discovery process will only discover peers which have wifi turned on obviously. Note that wifi-P2P is not something you can turn on! you just need wifi to be on as described in setting the process up in the webpage...

It won't give you exactly what you're looking for (some of those look like OS-specific parameters), but you can get a lot of the relevant info from the airport command. It's not in the default PATH, so you need to give the full path to the executable: $ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s...

I think your network has not the same configuration as you set (for proto / pairwise). You might configure your network this way: network={ ssid="iPhone" psk="pass" key_mgmt=WPA-PSK } The wpa_supplicant will find the correct configuration by itself....

The android kernel is not the place to look for network switching. build.prop is also useless for this because it just contain the default boot values. Switching network interfaces is a very bad idea, because the android framework need to be synchronized with the lower linux layer state. I would...

While making my research on Server Fault for similar issues I got a hint what could be wrong also: http://serverfault.com/questions/560733/why-isnt-tomcat-serving-the-correct-ssl-certificate I tried it out with the missing parameter "keyAlias", and it worked! The solution was finally - like Ogre_BGR expected before - a not optimal tomcat configuration. The connector looks...

You're running Windows. The project web page says: Designed and tested on Linux; works with Backtrack 5, BlackBuntu, BackBox, and Pentoo! Linux only; no windows or OSX support (but you're welcome to try). The os.getuid function is only available on Unix, that's why you're getting an error. It's not necessary...

If you are using Cyanogenmod, developer options provides a way to operate adb over network. 1) Enable 'ADB over network' in Developer option of Android Settings 2) When you enable 'ADB over network' and if you are connected to internet, you will find your wlan device ip address below the...

Firstly, these are not two entities to be differentiated. Even if you use Wi-Fi P2p for NSD, you should use WifiP2pManager for connection initiation and negotiation. NSD is to be used for Discovery phase I assume your question to be difference between Using Wi-Fi P2p Service Discovery(NSD) and Not using...

Yes, it is possible when the AP is using WEP or no encryption at all. APs using WPA or WPA2 however will encrypt the whole header. A WEP Wifipackage has the following structure: Address Fields Depending upon the frame type, the four address fields will contain a combination of the...

Each WIFI network is provided by a different WIFI access point. Each access point has it's own IP address. You could do a trace route from your computer towards the target, analyze the list of IP addresses you get from that trace, and determine which access point is in the...

If you want both operation to work on a single button click, then add a BroadcastReceiver for listening to Wifi connection state, as shown in below. & in the onReceive() method do the socket connection. Your socket connection is not working when in same button click because Wifi connection takes...

If you create a bogus driver, e.g. a plain text file, with same name as the real driver, the following sequence seems to get the job done - namely, permanently disabling wifi (until someone restores the device driver). !/system/bin/sh su turn off wifi just in case... svc wifi disable first...

As of Android 5.0.0_r1-5.1.0_r1, the acceptable fields are "NONE", "WPA", and "WEP". It appears that a null or empty value will resolve to "NONE" but I haven't confirmed. The fields are directly mapped to a WifiConfig class in the ManagedProvisioning project (AOSP). https://android.googlesource.com/platform/packages/apps/ManagedProvisioning/+/android-5.0.0_r7/src/com/android/managedprovisioning/WifiConfig.java Note: The security type is defined directly...

Kali uses the file /etc/modules instead of the directory /etc/modules-load.d/ You can edit the file with the nano text editor using the command "nano /etc/modules". I found a good article that explains my current situation: http://comments.gmane.org/gmane.comp.hardware.beagleboard.user/61462...

Checking the state of WiFi can be done by obtaining an instance to the WiFi system service as below: WifiManager wifi = (WifiManager)getSystemService(Context.WIFI_SERVICE); from this, the method isWifiEnabled() can be used to determine if WiFi is enabled. As below: WifiManager wifi = (WifiManager)getSystemService(Context.WIFI_SERVICE); if (wifi.isWifiEnabled()){ //TODO: Code to execute if...

Of course there is, one simple way would be to run a background service on the second device and use GCM (or any other service/protocol you like) to send a message to the second device, the service then processes the message and fires and intent which opens the app on...

Right... I found a solution to this issue. The problem was that the ESP8266 needs CR + LF after each AT command to respond. To do this with Putty you need to press Ctrl+M and Ctrl+J to manually insert the CR+LF. As an alternative, the Arduino IDE - Serial window...

Wifi Direct is a technology for peer to peer connections and is very different from wifi. Wi-Fi Direct, initially called Wi-Fi P2P, is a Wi-Fi standard enabling devices to easily connect with each other without requiring a wireless access point.It is usable for everything from internet browsing to file transfer...

I guess you need the wifi monitor feature. You can find out if your adapter provides this capability here. As far as I can tell, I did use the same adapters and had problems setting up a raspi to raspi adhoc connection with these adapters - see here. While moving...

I don't think ESX supports ANY WiFi drivers. Check their compatibility lists or ask directly. If there are any a WiFi card in a laptop is normally a Mini-PCI card that can be replaced reasonably easily. If not; You may be able to setup a PCI passthrough to one of...

You can pass your value from one tab to another tab or from tab activity to tab.like below //Create the public static reference of TabHost and intent in your TabActivity. i.e public static TabHost tabHost; public static Intent intent; //in TabActivity initialize it inside OnCreate tabHost = getTabHost(); intent =getIntent();...

You very likely want to use cgo as it's really easy to call any C API An added benefit is that C APIs are usually pretty stable over time as the library creators almost always opt for a new function rather than break the API of an existing one. Running...

The error is due to isServerReachable() method because you are doing the networking operations in the UI thread, which will result NetworkOnMainThreadException. Instead to running them directly execute the method in a AsyncTask or another worker Thread. public class MyAsyncTask extends AsyncTask<Void, Void, Boolean> { @Override protected Boolean doInBackground(Void... params)...

Best solution I found at the moment: It baffles me how info/interface about tethering is so cumbersome/hidden to get, and yet not taken into consideration when you get info from WifiManager, or ConnectivityManager for the Wifi type: it all works only when NOT in tethering. I'm actually lost to that...

After some research, I didn't find a way to connect easily to a wifi using Python on a Raspberry Pi. So I solved my problem by using the wifi command on the Terminal: sudo wifi connect --ad-hoc SSID_Name Which automatically asks me for an input: passkey> .Where you can actually...

You can check your issues in sophron github, so you can try this changes in your wifiphisher.py: Change to python2 in the header code. Change this: #!/usr/bin/env python to this: #!/usr/bin/env python2 or while you running the program you must select the network manually: -a MAC -c CHANAL -jI INTERFACE...

I know nothing about NodeMCU but that is not a proper http server. For it to properly work with a browser, it should return some headers. You can try to close the connection after sending the response. Try the following: wifi.setmode(wifi.STATION) wifi.sta.config("SSID", "password") wifi.sta.connect() srv = net.createServer(net.TCP) srv:listen(80,function(conn) conn:on("receive", function(conn,...

You can start JBoss AS with -b 0.0.0.0 to listen on any IP. You should see a message on the console indicating it's listening on 0.0.0.0:8080. You'll also have to open port 8080 on your firewall. How you do that will be specific to your operating system....

It will depend the device and drivers. Most drivers need some support from Kernel, and in those cases your host kernel must provide the functionality. Some of the driver's functionality, dependent libraries and applications may be implemented in userspace (for example packages libusb, usbutils...) and your container should have those...

You're suffering from Bufferbloat. In short, some router uses too much buffering under load, which causes extremely high latencies. The solution would be to replace the DLINK with a debloated router (I recommend a recent version of OpenWRT with fq_codel), and set up traffic shaping to ensure that the congestion...

Herei am providing you code to find list of all available wifi and their informations like BSSID,SSID etc. Here you can find that particular wifi is public or private. create beans for wifi data named WifiDataBeans public class WifiDataBeans { public String ssid; public String bssid; public String compatibility; public...