# Package com.codename1.io.wifi

package com.codename1.io.wifi

WiFi inspection, scanning, connection and peer-to-peer (WiFi Direct).

`WiFi` exposes the current connection's SSID/BSSID/IP plus APIs to scan for and connect to nearby networks (`WiFiNetwork`, `WiFiSecurity`, `WiFiScanCallback`, `WiFiConnectCallback`).

`WiFiDirect` covers Android-style WiFi Direct peer discovery and session setup via `WiFiDirectPeer` and `WiFiDirectListener`.

`WifiPlatform` / `WifiDirectPlatform` are the SPIs the active port implements; on modern Android (10+) and iOS, the SSID/BSSID queries require runtime permissions or entitlements that the build pipeline injects automatically based on classpath scanning.

- Related Packages
  Package
  Description
  com.codename1.io
  Networking, Storage, Filesystem & related API's
- Class
  Description
  WiFi
  Entry point for inspecting, scanning and connecting to WiFi networks.
  WiFiConnectCallback
  Callback for `WiFi.connect(...)`.
  WiFiDirect
  WiFi Direct (Wi-Fi P2P) discovery and grouping.
  WiFiDirectListener
  Listener for WiFi Direct peer discovery.
  WiFiDirectPeer
  One peer discovered by `WiFiDirect.startDiscovery(...)`.
  WifiDirectPlatform
  Platform-supplied implementation of the WiFi-Direct API.
  WiFiNetwork
  One entry in a WiFi scan result.
  WifiPlatform
  Platform-supplied implementation of the WiFi APIs.
  WiFiScanCallback
  Callback for `WiFi.scan(...)`.
  WiFiSecurity
  Security mode advertised by an access point.