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.

  • Class
    Description
    Entry point for inspecting, scanning and connecting to WiFi networks.
    Callback for WiFi.connect(...).
    WiFi Direct (Wi-Fi P2P) discovery and grouping.
    Listener for WiFi Direct peer discovery.
    One peer discovered by WiFiDirect.startDiscovery(...).
    Platform-supplied implementation of the WiFi-Direct API.
    One entry in a WiFi scan result.
    Platform-supplied implementation of the WiFi APIs.
    Callback for WiFi.scan(...).
    Security mode advertised by an access point.