|
|
static final int | SYS_CONFIG_CMND = 0x01 |
| |
|
static final int | SYS_SEND_FIRMWARE_HEADER = 0x02 |
| |
|
static final int | SYS_FIRMWARE_HEADER_POS_ACK = 0x03 |
| |
|
static final int | SYS_FIRMWARE_HEADER_NEG_ACK = 0x04 |
| |
|
static final int | SYS_SEND_CHUNK = 0x05 |
| |
|
static final int | SYS_ADDRESS_RANGE_RCV = 0x06 |
| |
|
static final int | SYS_ADDRESS_RANGE_RQT = 0x07 |
| |
Created by Mallikarjun Tirlapur on 20-06-2016. BltManager class inherits the properties of class SystemStates. The class establishes the bluetooth communication link. CExchanges command with the PIC
◆ BltManager() [1/2]
| com.hobby.smart.bluetoothcomm.BltManager.BltManager |
( |
| ) |
|
default empty constructor
◆ BltManager() [2/2]
| com.hobby.smart.bluetoothcomm.BltManager.BltManager |
( |
Context |
cnt | ) |
|
Constructor initializes all the instances decalred in the class
◆ closeBluetooth()
| void com.hobby.smart.bluetoothcomm.BltManager.closeBluetooth |
( |
| ) |
|
Function closes the Bluettoth port and cuts the link
◆ enableBluetooth()
| void com.hobby.smart.bluetoothcomm.BltManager.enableBluetooth |
( |
| ) |
|
Function enables the Bluettoth
◆ listenForData()
| void com.hobby.smart.bluetoothcomm.BltManager.listenForData |
( |
| ) |
|
Function defines the thread which listens data from the PIC
◆ openBluetooth()
| void com.hobby.smart.bluetoothcomm.BltManager.openBluetooth |
( |
BluetoothDevice |
device | ) |
throws IOException |
Function Opens the Bluettoth port and establishes communication link
◆ sendData()
| void com.hobby.smart.bluetoothcomm.BltManager.sendData |
( |
byte |
data | ) |
|
Function is called to send the data to PIC
- Parameters
-
| data | data tobe sent out to PIC |
The documentation for this class was generated from the following file:
- E:/BluetoothComm/app/src/main/java/com/hobby/smart/bluetoothcomm/BltManager.java