Android>Sketch Permissionsから以下をチェック
スクリプトはこんな感じで書いて書き出し。
import android.bluetooth.BluetoothAdapter;
BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter();
void setup(){
//orientation(LANDSCAPE);
}
void draw(){
if(bluetooth.isEnabled()){
background(255,0,0);
} else {
background(0,0,0);
}
}
通信が出来たらAndroidの画面が赤くなるのでそれで成功です。