wlan

Type Native Wifi.Wlan + WlanReasonCode cannot be marshaled error

£可爱£侵袭症+ 提交于 2019-12-02 02:41:43
Wanted to ask your opinion on this error that I am getting while running my Wifi profile add code. Now the code that you are seeing is an example which I am using (coz I am new to the Wlan interface in C#). I am trying to add wlan capability to my program that will search for a certain wireless network, add that profile to the PC and connect it (ping test - got this working yay). Please see the pic for the error: here What I have found is that if I remove the Cheesecake profile from the windows folder, the error does not happen. This tells me that the error could be something due to the

Command netsh using C#

家住魔仙堡 提交于 2019-12-01 13:58:38
I want to create a C# application to create a WLAN network. I currently use netsh using command prompt. My application should do this in button click. Here is the command I use in command prompt in admin mode "netsh wlan set hostednetwork mode=allow ssid=sha key=12345678" after that I enter "netsh wlan start hostednetwork". When I do this i can create a wifi local area network. In C# I coded like below private void button1_Click(object sender, EventArgs e) { Process p = new Process(); p.StartInfo.FileName = "netsh.exe"; p.StartInfo.Arguments = "wlan set hostednetwork mode=allow ssid=sha key

Do not receive GCM message while android device being connected to WIFI

五迷三道 提交于 2019-11-30 20:45:16
Background I am working on an Android app which uses Google Cloud Messaging (new GCM-API, not deprecated C2DM) for sending send-to-sync messages to all registered devices. Since I used the official documentation my client implementation works almost exactly the same way like Google´s example. As a server I use a simple PHP script running on localhost whose only task is to send send-to-sync messages to GCM. The Issue Everything works fine as long as my devices are connected to the internet through cellular networks like UMTS (server sends notfication to GCM > GCM pushes notifcation to device as

What is the iOS API for scanning available wi-fi networks

柔情痞子 提交于 2019-11-30 16:04:48
问题 That's the question, but here's the long version: I'm working on a project that needs to mimic the connection workflow of the Belkin Wemo. The Wemo is a physical switch that can be controlled from an iOS app. This is how the setup works: The Wemo acts as a wifi router, it broadcasts an SSID, and you choose it from the list of available networks in your iPhone settings. You then choose your home wi-fi network from within the wemo app , given a list of available networks. and enter your network

What is the iOS API for scanning available wi-fi networks

无人久伴 提交于 2019-11-30 15:38:14
That's the question, but here's the long version: I'm working on a project that needs to mimic the connection workflow of the Belkin Wemo. The Wemo is a physical switch that can be controlled from an iOS app. This is how the setup works: The Wemo acts as a wifi router, it broadcasts an SSID, and you choose it from the list of available networks in your iPhone settings. You then choose your home wi-fi network from within the wemo app , given a list of available networks. and enter your network password. Presumably so the Wemo device can connect to your wi-fi router. The Wemo app then announces

Do not receive GCM message while android device being connected to WIFI

廉价感情. 提交于 2019-11-30 05:17:19
问题 Background I am working on an Android app which uses Google Cloud Messaging (new GCM-API, not deprecated C2DM) for sending send-to-sync messages to all registered devices. Since I used the official documentation my client implementation works almost exactly the same way like Google´s example. As a server I use a simple PHP script running on localhost whose only task is to send send-to-sync messages to GCM. The Issue Everything works fine as long as my devices are connected to the internet

Using nl80211.h to scan access points

断了今生、忘了曾经 提交于 2019-11-30 02:28:51
I'm trying to use nl80211.h for scanning access points for a simple WLAN manager. I can't find any example code and only documentation I can find is kerneldoc . I have been trying to study from iw and wpa_supplicant source but it's rather complex. This is only documentation I can find: NL80211_CMD_GET_SCAN get scan results NL80211_CMD_TRIGGER_SCAN trigger a new scan with the given parameters NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the probe requests at CCK rate or not. How can I scan access points with nl80211? I think I need to use enum nl80211_commands {NL80211_CMD_GET

Connect Device to Mac localhost Server? [closed]

余生颓废 提交于 2019-11-28 15:33:36
How do I allow any device, e.g., iPhone, to connect over a WLAN to my Mac's localhost server? On my Mac, I'm running a "Hello World" HTTP Node.js server that serves a page, which Safari opens successfully, at http://localhost:1337 . And, running ipconfig getifaddr en1 in Terminal outputs 192.168.1.9 . But, Safari, on both iPhone & Mac, displays "Safari can't connect to the server" when it tries to open http://192.168.1.9:1337 . I don't think this should involve port forwarding because I only want the HTTP server to be available privately, not publicly. Related: Accessing localhost from iPhone

Get Host-IPs of wireless network

点点圈 提交于 2019-11-28 14:52:41
Possible Duplicate: Get all IP-Hosts in Lan from mobile device How can I get programmaticaly all the hosts in a wireless network? I know the wlan I'm working in and I am connected to it. Now I want to show a list of the hosts (or at least their IP-Addresses). How can I accomplish this, and are there special points if I work on windows mobile with compact framework and want to do that? There are lots of ways. For example: ARP: http://msdn.microsoft.com/en-us/library/aa366358%28VS.85%29.aspx WMI: http://weblogs.sqlteam.com/mladenp/archive/2010/11/04/find-only-physical-network-adapters-with-wmi

WLAN API for getting signal strenth

核能气质少年 提交于 2019-11-28 08:50:40
I am using WLAN Api i.e WlanGetAvailableNetworkList() for signal strength of wireless lan modem/USB datacard.If somebody have some sample code example or some information pls send me. fmark If you are using Python, there is sample code here . If you are using C++, the documentation provides a good example: #define UNICODE #include <windows.h> #include <wlanapi.h> #include <objbase.h> #include <wtypes.h> #include <stdio.h> #include <stdlib.h> // Need to link with Wlanapi.lib and Ole32.lib #pragma comment(lib, "wlanapi.lib") #pragma comment(lib, "ole32.lib") int wmain() { // Declare and