Protech Systems PA-6822 User Manual page 89

Table of Contents

Advertisement

Receiver Data - Attach
When class need to receiver serial port data need to use.
Purpose
True (1) on success, False (0) on failure False (0)
Return
Receive Data from serial port.
Example
Before use this function need to implements Observer Interface.
Observer = Current class.
SP
SerialPortcontrol
SerialPortcontrol.OpenSerialPort(19200); SerialPortcontrol.Attach(this);
@Override
public void Update(final
{runOnUiThread(new
public void
(mReception
if
mReception.append(new
When Close:
SerialPortcontrol.CloseSerialPort();SerialPortcontrol.Detach(this);
Receiver Data - Detach
Cancel Obsver from SerialPort Data
Purpose
True (1) on success, False (0) on failure False (0)
Return
PA-6822 SERIES USER MANUAL
Public Boolean Attach();
=
SP();
new
byte[] buffer,
Runnable() {
run() {
!= null) {
String(buffer, 0, size));
Public Boolean Detach();
Chapter 3 Software
size)
final int
Page 88

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents