How to Activate the Portable Hotspot on a Smart POS Terminal: Difference between revisions

From wizarPOS
No edit summary
No edit summary
Line 15: Line 15:
|-
|-
| wifiApSecurityKeyManagement || '''String:''' WLAN hotspot security: String None = "None", String WPA2_PSK = "WPA2_PSK";
| wifiApSecurityKeyManagement || '''String:''' WLAN hotspot security: String None = "None", String WPA2_PSK = "WPA2_PSK";
|}
{|
|-
|}
{|class="wizarpostable"
|-
|-
! scope="row" colspan="2" | Returns
! scope="row" colspan="2" | Returns

Revision as of 20:10, 5 January 2024

Special Method for Q2 with Android 6

  • A specific demo is provided for activating the portable hotspot on Q2 terminals running Android 6 using an application.

Common Method for All POS Terminals

Here is the API Overview:

Start WiFi AP

boolean startWifiAp(String wifiApName, String wifiApPassword, String wifiApSecurityKeyManagement)
  • Initiates the WiFi Access Point (AP) with specified network name ('wifiApName'), password ('wifiApPassword'), and security key management ('wifiApSecurityKeyManagement').
Parameters
wifiApName String: WLAN hotspot network name;
wifiApPassword String: WLAN hotspot password;
wifiApSecurityKeyManagement String: WLAN hotspot security: String None = "None", String WPA2_PSK = "WPA2_PSK";
Returns
boolean true or false

Stop WiFi AP

boolean stopWifiAp()
  • Disables the WiFi Access Point.
Returns
boolean true or false

System APK Requirement

  • The APIs are provided by the system APK. Ensure this APK is installed before testing the APIs.

Demo Availability

  • The demo is available for practical guidance on implementing these features.