<h1 id="firstHeading" class="firstHeading" lang="ko" style="background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: normal; margin: 0px 0px 0.25em; overflow: visible; padding: 0px; border-bottom: 1px solid rgb(170, 170, 170); font-size: 1.8em; line-height: 1.3; font-family: sans-serif;">Connecting mit app inventor &amp; littleBits BLE (앱 인벤터와 리틀비츠 블루투스모듈 연동하기)</h1>
<div id="bodyContent" class="mw-body-content" style="position: relative; line-height: 1.6; font-size: 0.875em; z-index: 0; color: #252525; font-family: sans-serif;">
   <div id="contentSub" style="font-size: 11.76px; line-height: 1.2em; margin: 0px 0px 1.4em 1em; color: #545454; width: auto;">&nbsp;</div>
   <div id="jump-to-nav" class="mw-jump" style="overflow: hidden; height: 0px; zoom: 1; user-select: none; margin-top: -1.4em; margin-bottom: 1.4em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#mw-head" style="text-decoration-line: none; color: #0b0080; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" target="_blank"></a><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#p-search" style="text-decoration-line: none; color: #0b0080; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" target="_blank"></a></div>
   <div id="mw-content-text" lang="ko" dir="ltr" class="mw-content-ltr" style="direction: ltr;">
      <div id="toc" class="toc" style="border: 1px solid rgb(170, 170, 170); background-color: #f9f9f9; padding: 7px; font-size: 13.3px; display: table; zoom: 1;">
         <div id="toctitle" style="direction: ltr; text-align: center;">
            <h2 style="color: #000000; background: none; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; border: none; font-size: 13.3px; display: inline; line-height: 1.3;">목차</h2>
            <span class="toctoggle" style="user-select: none; font-size: 12.502px;">&nbsp;[<a role="button" tabindex="0" id="togglelink" style="color: #0645ad; background: none; cursor: pointer;">숨기기</a>]&nbsp;</span></div>
         <ul style="list-style-type: none; margin: 0.3em 0px; padding: 0px; list-style-image: none;">
            <li class="toclevel-1 tocsection-1" style="margin-bottom: 0.1em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#mit_app_inventor_.3C-.3E_littleBits_BLE" style="text-decoration-line: none; color: #0b0080; background: none;" target="_blank"><span class="tocnumber" style="display: table-cell; text-decoration: inherit; padding-left: 0px; padding-right: 0.5em;">1</span><span class="toctext" style="display: table-cell; text-decoration: inherit;">mit app inventor &lt;-&gt; littleBits BLE</span></a>
               <ul style="list-style-type: none; margin: 0px 0px 0px 2em; padding: 0px; list-style-image: none;">
                  <li class="toclevel-2 tocsection-2" style="margin-bottom: 0.1em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#.EC.98.88.EC.A0.9C" style="text-decoration-line: none; color: #0b0080; background: none;" target="_blank"><span class="tocnumber" style="display: table-cell; text-decoration: inherit; padding-left: 0px; padding-right: 0.5em;">1.1</span><span class="toctext" style="display: table-cell; text-decoration: inherit;">예제</span></a></li>
                  <li class="toclevel-2 tocsection-3" style="margin-bottom: 0.1em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#.EC.98.88.EC.A0.9C_.EB.B6.84.EC.84.9D" style="text-decoration-line: none; color: #0b0080; background: none;" target="_blank"><span class="tocnumber" style="display: table-cell; text-decoration: inherit; padding-left: 0px; padding-right: 0.5em;">1.2</span><span class="toctext" style="display: table-cell; text-decoration: inherit;">예제 분석</span></a>
                     <ul style="list-style-type: none; margin: 0px 0px 0px 2em; padding: 0px; list-style-image: none;">
                        <li class="toclevel-3 tocsection-4" style="margin-bottom: 0.1em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#1._BLE_scanner_app.EC.9C.BC.EB.A1.9C_littleBits_BLE_.EB.AA.A8.EB.93.88.EC.9D.B4_.EC.96.B4.EB.96.BB.EA.B2.8C_.EC.9E.91.EB.8F.99.EB.90.98.EB.8A.94.EC.A7.80_.EC.82.B4.ED.8E.B4.EB.B3.B4.EC.9E.90" style="text-decoration-line: none; color: #0b0080; background: none;" target="_blank"><span class="tocnumber" style="display: table-cell; text-decoration: inherit; padding-left: 0px; padding-right: 0.5em;">1.2.1</span><span class="toctext" style="display: table-cell; text-decoration: inherit;">1. BLE scanner app으로 littleBits BLE 모듈이 어떻게 작동되는지 살펴보자</span></a>
                           <ul style="list-style-type: none; margin: 0px 0px 0px 2em; padding: 0px; list-style-image: none;">
                              <li class="toclevel-4 tocsection-5" style="margin-bottom: 0.1em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#UUID" style="text-decoration-line: none; color: #0b0080; background: none;" target="_blank"><span class="tocnumber" style="display: table-cell; text-decoration: inherit; padding-left: 0px; padding-right: 0.5em;">1.2.1.1</span><span class="toctext" style="display: table-cell; text-decoration: inherit;">UUID</span></a></li>
                              <li class="toclevel-4 tocsection-6" style="margin-bottom: 0.1em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#appinventor_-.3E_littleBits_BLE" style="text-decoration-line: none; color: #0b0080; background: none;" target="_blank"><span class="tocnumber" style="display: table-cell; text-decoration: inherit; padding-left: 0px; padding-right: 0.5em;">1.2.1.2</span><span class="toctext" style="display: table-cell; text-decoration: inherit;">appinventor -&gt; littleBits BLE</span></a></li>
                              <li class="toclevel-4 tocsection-7" style="margin-bottom: 0.1em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#littleBits_BLE_-.3E_appinventor" style="text-decoration-line: none; color: #0b0080; background: none;" target="_blank"><span class="tocnumber" style="display: table-cell; text-decoration: inherit; padding-left: 0px; padding-right: 0.5em;">1.2.1.3</span><span class="toctext" style="display: table-cell; text-decoration: inherit;">littleBits BLE -&gt; appinventor</span></a></li>
                              </ul>
                           </li>
                        <li class="toclevel-3 tocsection-8" style="margin-bottom: 0.1em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#2._app_inventor_BLE_extension.EC.9D.84_.EC.84.A4.EC.B9.98.ED.95.9C.EB.8B.A4." style="text-decoration-line: none; color: #0b0080; background: none;" target="_blank"><span class="tocnumber" style="display: table-cell; text-decoration: inherit; padding-left: 0px; padding-right: 0.5em;">1.2.2</span><span class="toctext" style="display: table-cell; text-decoration: inherit;">2. app inventor BLE extension을 설치한다.</span></a></li>
                        <li class="toclevel-3 tocsection-9" style="margin-bottom: 0.1em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#3._app_inventor_.EC.BD.94.EB.93.9C_.EB.B6.84.EC.84.9D" style="text-decoration-line: none; color: #0b0080; background: none;" target="_blank"><span class="tocnumber" style="display: table-cell; text-decoration: inherit; padding-left: 0px; padding-right: 0.5em;">1.2.3</span><span class="toctext" style="display: table-cell; text-decoration: inherit;">3. app inventor 코드 분석</span></a>
                           <ul style="list-style-type: none; margin: 0px 0px 0px 2em; padding: 0px; list-style-image: none;">
                              <li class="toclevel-4 tocsection-10" style="margin-bottom: 0.1em;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/Connecting_mit_app_inventor_%26_littleBits_BLE_(%EC%95%B1_%EC%9D%B8%EB%B2%A4%ED%84%B0%EC%99%80_%EB%A6%AC%ED%8B%80%EB%B9%84%EC%B8%A0_%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4%EB%AA%A8%EB%93%88_%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)#BLE_extention.EC.9D.98_.EB.B2.84.EA.B7.B8:_apk.EB.A1.9C_.EC.84.A4.EC.B9.98.ED.95.B4_.EC.8B.A4.ED.96.89.EC.8B.9C_WriteByte_.EB.B8.94.EB.A1.9D_.EC.97.90.EB.9F.AC_.22Runtime_error_failed_resolution_Lcom.2Fgoogle.2Fcommon.2Fcollect.2FList.22" style="text-decoration-line: none; color: #0b0080; background: none;" target="_blank"><span class="tocnumber" style="display: table-cell; text-decoration: inherit; padding-left: 0px; padding-right: 0.5em;">1.2.3.1</span><span class="toctext" style="display: table-cell; text-decoration: inherit;">BLE extention의 버그: apk로 설치해 실행시 WriteByte 블록 에러 "Runtime error failed resolution Lcom/google/common/collect/List"</span></a></li>
                              </ul>
                           </li>
                        </ul>
                     </li>
                  </ul>
               </li>
            </ul>
         </div>
      <h1 style="color: #000000; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: normal; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; border-bottom: 1px solid rgb(170, 170, 170); font-size: 1.8em; line-height: 1.3;"><span class="mw-headline" id="mit_app_inventor_.3C-.3E_littleBits_BLE">mit app inventor &lt;-&gt; littleBits BLE</span></h1>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">@(4_skills)[littleBits, app inventor] @[littleBits, app inventor]</p>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">참고:&nbsp;<a target="_blank" rel="nofollow noreferrer noopener" class="external free" href="http://discuss.littlebits.cc/t/is-it-possible-to-control-a-w30-ble-bit-from-a-custom-made-app/25376/6" style="text-decoration-line: none; color: #663366; background-image: linear-gradient(transparent, transparent), url(&quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%20d%3D%22M1.5%204.518h5.982V10.5H1.5z%22%2F%3E%3Cpath%20d%3D%22M5.765%201H11v5.39L9.427%207.937l-1.31-1.31L5.393%209.35l-2.69-2.688%202.81-2.808L4.2%202.544z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M9.995%202.004l.022%204.885L8.2%205.07%205.32%207.95%204.09%206.723l2.882-2.88-1.85-1.852z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E&quot;); background-position: right center; background-size: initial, initial; background-repeat: no-repeat, repeat; background-attachment: initial, initial; background-origin: initial, initial; background-clip: initial, initial; padding-right: 13px; overflow-wrap: break-word;">http://discuss.littlebits.cc/t/is-it-possible-to-control-a-w30-ble-bit-from-a-custom-made-app/25376/6</a></p>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">참고:&nbsp;<a target="_blank" rel="nofollow noreferrer noopener" class="external free" href="https://github.com/khanning/littlebits-ble-extension/blob/gh-pages/littleBitsBLE_extension.js" style="text-decoration-line: none; color: #663366; background-image: linear-gradient(transparent, transparent), url(&quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%20d%3D%22M1.5%204.518h5.982V10.5H1.5z%22%2F%3E%3Cpath%20d%3D%22M5.765%201H11v5.39L9.427%207.937l-1.31-1.31L5.393%209.35l-2.69-2.688%202.81-2.808L4.2%202.544z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M9.995%202.004l.022%204.885L8.2%205.07%205.32%207.95%204.09%206.723l2.882-2.88-1.85-1.852z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E&quot;); background-position: right center; background-size: initial, initial; background-repeat: no-repeat, repeat; background-attachment: initial, initial; background-origin: initial, initial; background-clip: initial, initial; padding-right: 13px; overflow-wrap: break-word;">https://github.com/khanning/littlebits-ble-extension/blob/gh-pages/littleBitsBLE_extension.js</a></p>
      <h2 style="color: #000000; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: normal; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; border-bottom: 1px solid rgb(170, 170, 170); line-height: 1.3;"><span class="mw-headline" id=".EC.98.88.EC.A0.9C">예제</span></h2>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/%ED%8C%8C%EC%9D%BC:LittleBits_w30_BLE.aia.zip" title="파일:LittleBits w30 BLE.aia.zip" style="text-decoration-line: none; color: #0b0080; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" target="_blank">파일:LittleBits w30 BLE.aia.zip</a></p>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">예제를 다운받아 app inventor에서 import 한 후, 각 프로젝트에 맞게 수정해 사용한다.</p>
      <pre style="font-family: monospace, Courier; color: #000000; background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); padding: 1em; white-space: pre-wrap; line-height: 1.3em;"><img src="https://cl.ly/pZeY/appInventor-littleBIts_BLE.gif" alt="appInventor-littleBIts_BLE.gif" style="border: none; vertical-align: middle;" /></pre>
      <h2 style="color: #000000; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: normal; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px; border-bottom: 1px solid rgb(170, 170, 170); line-height: 1.3;"><span class="mw-headline" id=".EC.98.88.EC.A0.9C_.EB.B6.84.EC.84.9D">예제 분석</span></h2>
      <h3 style="color: #000000; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; margin: 0.3em 0px 0px; overflow: hidden; padding-top: 0.5em; padding-bottom: 0px; border-bottom: none; font-size: 1.2em; line-height: 1.6;"><span class="mw-headline" id="1._BLE_scanner_app.EC.9C.BC.EB.A1.9C_littleBits_BLE_.EB.AA.A8.EB.93.88.EC.9D.B4_.EC.96.B4.EB.96.BB.EA.B2.8C_.EC.9E.91.EB.8F.99.EB.90.98.EB.8A.94.EC.A7.80_.EC.82.B4.ED.8E.B4.EB.B3.B4.EC.9E.90">1. BLE scanner app으로 littleBits BLE 모듈이 어떻게 작동되는지 살펴보자</span></h3>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">BLE scanner app으로 연결해 살펴보았다.</p>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;"><img src="https://cl.ly/pWVO/IMG_20180214_123843.jpg" width="500" style="border: none; vertical-align: middle; margin: 0px;" /></p>
      <h4 style="color: #000000; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; margin: 0.3em 0px 0px; overflow: hidden; padding-top: 0.5em; padding-bottom: 0px; border-bottom: none; font-size: 14px; line-height: 1.6;"><span class="mw-headline" id="UUID">UUID</span></h4>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">CUSTOM SERVICE UUID: 0705d0c0c8d841c9ae1552fad5358b8a</p>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">Cstom Characteristic UUID: 0705d0c2c8d841c9ae1552fad5358b8a</p>
      <h4 style="color: #000000; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; margin: 0.3em 0px 0px; overflow: hidden; padding-top: 0.5em; padding-bottom: 0px; border-bottom: none; font-size: 14px; line-height: 1.6;"><span class="mw-headline" id="appinventor_-.3E_littleBits_BLE">appinventor -&gt; littleBits BLE</span></h4>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">Khanning의 scratchx용 BLE extention 코드를 참고하여...</p>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;"><img src="https://cl.ly/pVSi/Image%202018-02-14%20at%202.46.00%20PM.png" alt="Image%202018-02-14%20at%202.46.00%20PM.png" style="border: none; vertical-align: middle; margin: 0px;" /></p>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">BLE bit에 write할 때는 byteWrite[ 0, 2, 전달하려는 값(0~255) ] 하면 된다.&nbsp;<img src="https://cl.ly/pWnQ/Screenshot_2018-02-14-15-34-33.png" width="500" style="border: none; vertical-align: middle; margin: 0px;" /></p>
      <h4 style="color: #000000; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; margin: 0.3em 0px 0px; overflow: hidden; padding-top: 0.5em; padding-bottom: 0px; border-bottom: none; font-size: 14px; line-height: 1.6;"><span class="mw-headline" id="littleBits_BLE_-.3E_appinventor">littleBits BLE -&gt; appinventor</span></h4>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">BLE bit에 연결된 버튼을 누르면 뭔지 잘 모르겠지만 HEX값 3번째 byte가 01 -&gt; 255(0xFF)로 NOTIFY 받는다.&nbsp;<img src="https://cl.ly/pWrQ/Image%202018-02-14%20at%2012.51.17%20PM.png" width="500" style="border: none; vertical-align: middle; margin: 0px;" /></p>
      <h3 style="color: #000000; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; margin: 0.3em 0px 0px; overflow: hidden; padding-top: 0.5em; padding-bottom: 0px; border-bottom: none; font-size: 1.2em; line-height: 1.6;"><span class="mw-headline" id="2._app_inventor_BLE_extension.EC.9D.84_.EC.84.A4.EC.B9.98.ED.95.9C.EB.8B.A4.">2. app inventor BLE extension을 설치한다.</span></h3>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">다운로드:&nbsp;<a target="_blank" rel="nofollow noreferrer noopener" class="external free" href="http://appinventor.mit.edu/extensions/" style="text-decoration-line: none; color: #663366; background-image: linear-gradient(transparent, transparent), url(&quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%20d%3D%22M1.5%204.518h5.982V10.5H1.5z%22%2F%3E%3Cpath%20d%3D%22M5.765%201H11v5.39L9.427%207.937l-1.31-1.31L5.393%209.35l-2.69-2.688%202.81-2.808L4.2%202.544z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M9.995%202.004l.022%204.885L8.2%205.07%205.32%207.95%204.09%206.723l2.882-2.88-1.85-1.852z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E&quot;); background-position: right center; background-size: initial, initial; background-repeat: no-repeat, repeat; background-attachment: initial, initial; background-origin: initial, initial; background-clip: initial, initial; padding-right: 13px; overflow-wrap: break-word;">http://appinventor.mit.edu/extensions/</a>&nbsp;(2.1버전 이상인지 확인! -아래쪽에 관련 내용)</p>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">도큐먼트:&nbsp;<a target="_blank" rel="nofollow noreferrer noopener" class="external free" href="http://iot.appinventor.mit.edu/#/bluetoothle/bluetoothleintro" style="text-decoration-line: none; color: #663366; background-image: linear-gradient(transparent, transparent), url(&quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%20d%3D%22M1.5%204.518h5.982V10.5H1.5z%22%2F%3E%3Cpath%20d%3D%22M5.765%201H11v5.39L9.427%207.937l-1.31-1.31L5.393%209.35l-2.69-2.688%202.81-2.808L4.2%202.544z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M9.995%202.004l.022%204.885L8.2%205.07%205.32%207.95%204.09%206.723l2.882-2.88-1.85-1.852z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E&quot;); background-position: right center; background-size: initial, initial; background-repeat: no-repeat, repeat; background-attachment: initial, initial; background-origin: initial, initial; background-clip: initial, initial; padding-right: 13px; overflow-wrap: break-word;">http://iot.appinventor.mit.edu/#/bluetoothle/bluetoothleintro</a></p>
      <h3 style="color: #000000; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; margin: 0.3em 0px 0px; overflow: hidden; padding-top: 0.5em; padding-bottom: 0px; border-bottom: none; font-size: 1.2em; line-height: 1.6;"><span class="mw-headline" id="3._app_inventor_.EC.BD.94.EB.93.9C_.EB.B6.84.EC.84.9D">3. app inventor 코드 분석</span></h3>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">확대해서 보자&nbsp;<img src="https://cl.ly/pXZV/Image%202018-02-15%20at%206.10.17%20AM.png" alt="Image%202018-02-15%20at%206.10.17%20AM.png" style="border: none; vertical-align: middle; margin: 0px;" />&nbsp;<img src="https://cl.ly/pXPB/Image%202018-02-15%20at%206.03.49%20AM.png" alt="Image%202018-02-15%20at%206.03.49%20AM.png" style="border: none; vertical-align: middle; margin: 0px;" /></p>
      <h4 style="color: #000000; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; margin: 0.3em 0px 0px; overflow: hidden; padding-top: 0.5em; padding-bottom: 0px; border-bottom: none; font-size: 14px; line-height: 1.6;"><span class="mw-headline" id="BLE_extention.EC.9D.98_.EB.B2.84.EA.B7.B8:_apk.EB.A1.9C_.EC.84.A4.EC.B9.98.ED.95.B4_.EC.8B.A4.ED.96.89.EC.8B.9C_WriteByte_.EB.B8.94.EB.A1.9D_.EC.97.90.EB.9F.AC_.22Runtime_error_failed_resolution_Lcom.2Fgoogle.2Fcommon.2Fcollect.2FList.22">BLE extention의 버그: apk로 설치해 실행시 WriteByte 블록 에러 "Runtime error failed resolution Lcom/google/common/collect/List"</span></h4>
      <div><del>
            <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">참고:&nbsp;<a target="_blank" rel="nofollow noreferrer noopener" class="external free" href="https://www.google.co.kr/search?q=failed+resolution+of:+Lcom/google/common/collect/Lists%3B+app+inventor&amp;ei=VcGEWtv2OMzC0gSjxL3ICg&amp;start=0&amp;sa=N&amp;biw=1920&amp;bih=983" style="text-decoration-line: none; color: #663366; background-image: linear-gradient(transparent, transparent), url(&quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%20d%3D%22M1.5%204.518h5.982V10.5H1.5z%22%2F%3E%3Cpath%20d%3D%22M5.765%201H11v5.39L9.427%207.937l-1.31-1.31L5.393%209.35l-2.69-2.688%202.81-2.808L4.2%202.544z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M9.995%202.004l.022%204.885L8.2%205.07%205.32%207.95%204.09%206.723l2.882-2.88-1.85-1.852z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E&quot;); background-position: right center; background-size: initial, initial; background-repeat: no-repeat, repeat; background-attachment: initial, initial; background-origin: initial, initial; background-clip: initial, initial; padding-right: 13px; overflow-wrap: break-word;">https://www.google.co.kr/search?q=failed+resolution+of:+Lcom/google/common/collect/Lists%3B+app+inventor&amp;ei=VcGEWtv2OMzC0gSjxL3ICg&amp;start=0&amp;sa=N&amp;biw=1920&amp;bih=983</a></p>
            <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;"><a target="_blank" rel="nofollow noreferrer noopener" class="external free" href="https://groups.google.com/forum/#!msg/mitappinventortest/at_zp8d4E_w/P_nT8enqCAAJ" style="text-decoration-line: none; color: #663366; background-image: linear-gradient(transparent, transparent), url(&quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%20d%3D%22M1.5%204.518h5.982V10.5H1.5z%22%2F%3E%3Cpath%20d%3D%22M5.765%201H11v5.39L9.427%207.937l-1.31-1.31L5.393%209.35l-2.69-2.688%202.81-2.808L4.2%202.544z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M9.995%202.004l.022%204.885L8.2%205.07%205.32%207.95%204.09%206.723l2.882-2.88-1.85-1.852z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E&quot;); background-position: right center; background-size: initial, initial; background-repeat: no-repeat, repeat; background-attachment: initial, initial; background-origin: initial, initial; background-clip: initial, initial; padding-right: 13px; overflow-wrap: break-word;">https://groups.google.com/forum/#!msg/mitappinventortest/at_zp8d4E_w/P_nT8enqCAAJ</a></p>
            앱인벤터의 버그로 apk를 다운받아 실행할 때 BLE WriteByte 블록이 에러가 난다. 앱인벤터 개발진이 해결해 줄 때 까지 번거롭지만 app inventor companion에 연결해 사용하자.</del></div>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">ble extention이 버전 업 (v.2.1)되면서 해결됨.</p>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">참고:&nbsp;<a target="_blank" rel="nofollow noreferrer noopener" class="external free" href="https://groups.google.com/forum/#!searchin/mitappinventortest/failed$20resolution$20/mitappinventortest/zjnHBb_FK7c/3RG77w-gBgAJ" style="text-decoration-line: none; color: #663366; background-image: linear-gradient(transparent, transparent), url(&quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%20d%3D%22M1.5%204.518h5.982V10.5H1.5z%22%2F%3E%3Cpath%20d%3D%22M5.765%201H11v5.39L9.427%207.937l-1.31-1.31L5.393%209.35l-2.69-2.688%202.81-2.808L4.2%202.544z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M9.995%202.004l.022%204.885L8.2%205.07%205.32%207.95%204.09%206.723l2.882-2.88-1.85-1.852z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E&quot;); background-position: right center; background-size: initial, initial; background-repeat: no-repeat, repeat; background-attachment: initial, initial; background-origin: initial, initial; background-clip: initial, initial; padding-right: 13px; overflow-wrap: break-word;">https://groups.google.com/forum/#!searchin/mitappinventortest/failed$20resolution$20/mitappinventortest/zjnHBb_FK7c/3RG77w-gBgAJ</a></p>
      <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;"><a href="http://lhdangerous.godohosting.com/wiki/index.php/%ED%8C%8C%EC%9D%BC:BLE-v2.1-rc4.aix.zip" title="파일:BLE-v2.1-rc4.aix.zip" style="text-decoration-line: none; color: #0b0080; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" target="_blank">파일:BLE-v2.1-rc4.aix.zip</a></p>
      </div>
   </div>