Activate POS Hotspot

Required Permissions

  • To use the API method, include the following permission in your application's manifest: 'android.permission.WIFI'.

Common Method for All POS Terminals

Here is the API Overview:

Start WiFi AP

boolean startWifiAp(String apName,
                    String apPassword,
                    String apSecurityKeyManagement,
                    boolean hiddenSSID)
             throws DeviceException

Initiates the WiFi Access Point (AP) with specified network name ('wifiApName'), password ('wifiApPassword'), and security key management ('wifiApSecurityKeyManagement').

Parameters

wifiApName

WLAN hotspot network name.

wifiApPassword

WLAN hotspot password.

wifiApSecurityKeyManagement

WLAN hotspot security: String None = "None", String WPA2_PSK = "WPA2_PSK".

Returns

boolean

a boolean representation of the result.

true if success. false if failure.

Stop WiFi AP

boolean stopWifiAp()
            throws DeviceException

Disables the WiFi Access Point.

Returns

boolean

a boolean representation of the result.

true if success. false if failure.

Remove WiFi SSID

boolean removeWifiSSID( ssid)
                throws DeviceException

Remove a SSID from the saved Wi-Fi list

Parameters

ssid

wifi ssid name.

Returns

boolean

a boolean representation of the result.

true if success. false if failure.

Resource Download

  • Refer to the cloudpos apidemo - demo.

Last updated