Protech Systems PA-6822 User Manual page 74

Table of Contents

Advertisement

Receiver Data - Attach
Receive Msr Data
Purpose
True (1) on success, False (0) on failure False (0)
Return
Receive Data from MSR.
Example
Before use this function need to implements Observer Interface.
Observer = Current class.
public class
android.Msr.Observer {
EditText mReception;
Msr
Msrcontrol
@Override
protected void
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_msr);
mReception
Msrcontrol
Msrcontrol.OpenMSR(115200); Msrcontrol.Attach(this);
@Override
public void Update(final
{runOnUiThread(new
public void
(mReception
if
mReception.append(new
}
}
});
}
}
PA-6822 SERIES USER MANUAL
Public Boolean Attach();
MsrActivity
extends
;
onCreate(Bundle savedInstanceState) {
= (EditText) findViewById(R.id.EditTextReception);
=
Msr();
new
byte[] buffer,
Runnable() {
run() {
!= null) {
String(buffer, 0, size));
Chapter 3 Software
Activity
implements
size)
final int
Page 73

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents