EasyManua.ls Logo

FEC PP Series - Device Code Example; Cash Drawer; COM Ports

Default Icon
59 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Installation and Settings
FEC ITALIA 37
Device code example
Cash Drawer
----------
public void CashDrawer_1_Open_click(View view) {
try {
Intent intent = new Intent("
X.intent.action.SET_BOX_OUTPUT1_HIGH");
mContext.sendBroadcast(intent);
Thread.sleep(200);
Intent intent1 = new Intent("
X.intent.action.SET_BOX_OUTPUT1_LOW");
mContext.sendBroadcast(intent1);
} catch (Exception e) {
Log.d(TAG, "Failed to send broadcast.");
}
}
public void CashDrawer_2_Open_click(View view) {
try {
Intent intent = new Intent("
X.intent.action.SET_BOX_OUTPUT2_HIGH");
mContext.sendBroadcast(intent);
Thread.sleep(200);
Intent intent1 = new Intent("
X.intent.action.SET_BOX_OUTPUT2_LOW");
mContext.sendBroadcast(intent1);
} catch (Exception e) {
Log.d(TAG, "Failed to send broadcast.");
}
}
----------
COM Ports

Related product manuals