objc

NXWireless.h
Go to the documentation of this file.
1 
11 #pragma once
12 
28 @interface NXWireless : NXObject {
29 @private
30  id<WirelessDelegate> _delegate;
31  hw_wifi_t *_wifi;
32  hw_wifi_network_t _network;
33 }
34 
42 
52 
62 - (void)setDelegate:(id<WirelessDelegate>)delegate;
63 
76 - (BOOL)scan;
77 
88 - (BOOL)connect:(NXWirelessNetwork *)network;
89 
99 - (BOOL)connect:(NXWirelessNetwork *)network
100  withPassword:(id<NXConstantStringProtocol>)password;
101 
110 - (BOOL)disconnect;
111 
112 @end
A class for managing wireless connections.
Definition: NXWireless.h:28
A class for representing a wireless network.
id sharedInstance()
A shared instance of the wireless manager.
bool BOOL
A Boolean value.
Definition: runtime.h:60
BOOL disconnect()
Disconnect from the current Wi‑Fi network.
BOOL scan()
Initiates a scan for available Wi-Fi networks.
Describes a discovered Wi‑Fi network (scan result).
Definition: wifi.h:86
id< WirelessDelegate > delegate()
Gets the current wireless delegate.
The base class for objects in the Foundation framework.
Definition: NXObject.h:21
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18