andoridx 썸네일형 리스트형 cordova 에서 BLE 통신하기 1. plugin 설치 (https://github.com/don/cordova-plugin-ble-central) cordova plugin add cordova-plugin-ble-central 2. bluetooth connect let infoLE; function BtConnect(){ ble.connect( 블루투스ID, function(res){ //연결처리 //쓰기, 읽기를 위해서 4번째 배열의 값(service, charcteristic)을 저장해야함. infoLE = res.charcteristics[4]; }, function(){ //연결 실패 처리 } ); } 3. bluetooth write ble.write( 블루투스ID, infoLE.service, infoLE.charact.. 더보기 이전 1 다음