PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → [WM18] Portabilité d'une application Android sur IOS - fonctions WIFI
[WM18] Portabilité d'une application Android sur IOS - fonctions WIFI
Started by SOPHIE, Jan., 10 2013 1:51 PM - 3 replies
Posted on January, 10 2013 - 1:51 PM
Bonjour
Je n'ai jamais fait de développement sous IOS et je dois porter, très rapidement, mon appli ANDROID sur IOS. Cette application utilise les fonctions WM suivantes :
- WifiEtat()
- WifiActive()
- WifiInfoConnexion()
- WifiListeReseau()
- WifiDetectePointAcces()
- WifiAjouteReseau()
- WifiSupprimeReseau()
- WifiConnecte()

Or celles ci n'existent pas sous IOS.
Merci de m'aider.
Registered member
141 messages
Posted on January, 16 2013 - 7:32 PM
Malheureusement ces fonctions ne sont pas possible en WM sous iOS. je te conseil de voir le code Objective-C et de le gérer toi même.
Posted on January, 17 2013 - 11:41 AM
Wifi Liste Reseau

Creer un procedure globale puis saisir en objectiv c

ne pas oublier de rajouter la librairi SystemConfiguration.framework a la generation

#import <SystemConfiguration/CaptiveNetwork.h>
void WifiNetwork(void* currentView)
{

UIViewController *tmpView = (UIViewController*)currentView;

NSArray* interfaces = (NSArray*) CNCopySupportedInterfaces();

for (NSString* interface in interfaces) {

CFDictionaryRef networkDetails = CNCopyCurrentNetworkInfo((CFStringRef) interface);
if (networkDetails) {
NSLog(@"all details: %@", (NSDictionary *)networkDetails);
NSLog(@"BSSID: %@", (NSString *)CFDictionaryGetValue (networkDetails, kCNNetworkInfoKeyBSSID));
CFRelease(networkDetails);
}
}

}
Posted on January, 17 2013 - 12:29 PM
Merci beaucoup