How to Enable and Disable Ethernet Connectivity

From wizarPOS
Revision as of 09:40, 26 June 2023 by Mahong (talk | contribs) (Created page with "The system provides the AIDL interface to enable/disable ethernet, When connect the service, the package name is '''com.wizarpos.wizarviewagentassistant''', and the class name...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The system provides the AIDL interface to enable/disable ethernet, When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class name is com.wizarpos.wizarviewagentassistant.Eth0MgrService. When the application uses the interface, it must import wizarviewagentassistant.

Version of wizarviewagentassistant should equal or larger than 2.10.60.

API Overview

enableEthernet

void enableEthernet(boolean enable);

Open or close Ethernet.

Parameters
enable boolean: true, open etherent, false, close ethernet.

getEthernetStatus

boolean getEthernetStatus();

true, open ethernet; false, close ethernet.

Returns
boolean true or false.

Download

AIDL

Please download the AIDL

Demo

Please download the demo