|
|
(One intermediate revision by one other user not shown) |
Line 1: |
Line 1: |
| == Special Method for Q2 with Android 6 ==
| | {{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/sim-ethenet-wifi/activate-pos-hotspot}} |
| * A specific [http://ftp.wizarpos.com/advanceSDK/HotspotConfig.zip 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:
| |
| === <big>Start WiFi AP</big> ===
| |
| <syntaxhighlight lang="java">boolean startWifiAp(String wifiApName, String wifiApPassword, String wifiApSecurityKeyManagement)</syntaxhighlight >
| |
| * Initiates the WiFi Access Point (AP) with specified network name (''''wifiApName''''), password (''''wifiApPassword''''), and security key management (''''wifiApSecurityKeyManagement'''').
| |
| {|class="wizarpostable"
| |
| |-
| |
| ! scope="row" colspan="2" | 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";
| |
| |}
| |
| {|
| |
| |-
| |
| |
| |
| |}
| |
| {|class="wizarpostable"
| |
| |-
| |
| ! scope="row" colspan="2" | Returns
| |
| |-
| |
| | boolean || true or false
| |
| |}
| |
| === <big>Stop WiFi AP</big> ===
| |
| <syntaxhighlight lang="java">boolean stopWifiAp()</syntaxhighlight >
| |
| * Disables the WiFi Access Point.
| |
| {|class="wizarpostable"
| |
| |-
| |
| ! scope="row" colspan="2" | Returns
| |
| |-
| |
| | boolean || true or false
| |
| |}
| |
| == System APK Requirement ==
| |
| * The APIs are provided by the [http://ftp.wizarpos.com/advanceSDK/WifiApHelper-release-q1_platform-0520.apk system APK]. Ensure this APK is installed before testing the APIs.
| |
| == Demo Availability ==
| |
| * [http://ftp.wizarpos.com/advanceSDK/HotspotConfigClient-0520.zip The demo] is available for practical guidance on implementing these features.
| |