This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define START_BYTE 'S' | |
#define END_BYTE 'E' | |
#define TX_NUM 3 | |
#define RX_NUM 3 | |
double x,y; | |
double r; | |
double degree; | |
uint8_t emotion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Unique UUID for this application | |
private static final UUID MY_UUID_SECURE = | |
UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); // for Serial Port Profile(SPP) | |
//UUID.fromString("fa87c0d0-afac-11de-8a39-0800200c9a66"); | |
private static final UUID MY_UUID_INSECURE = | |
UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); // for Serial Port Profile(SPP) | |
//UUID.fromString("8ce255c0-200a-11e0-ac64-0800200c9a66"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public boolean handleMessage(Message msg) { | |
switch (msg.what) { | |
case Constants.MESSAGE_STATE_CHANGE: | |
Log.d(TAG, "Change State"); | |
switch (msg.arg1) { | |
case BluetoothService.STATE_CONNECTED: | |
Log.d(TAG, "Connected"); | |
Toast.makeText(this, R.string.title_connected, Toast.LENGTH_SHORT).show(); | |
break; |