Skip to content

Instantly share code, notes, and snippets.

HirokiTitech

Block or report user

Report or block HirokiTitech

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Received process
@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;
View Changed UUID
// 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");
View EmotionViewer
#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;
You can’t perform that action at this time.