title: How to send data via BLE using ionic 3 and angular 4?
body: <p>my 1st question here.</p>
  
  <p>I'm currently using <strong>cordova-plugin-ble-central</strong> plugin to send datas over my BLE device. I can't really understand how send data.</p>
  
  <p>What i should do is to send a group of 8 bytes string using an Unit8Array.</p>
  
  <p>this is an example of what i've to send : </p>
  
  <pre><code>  array: string[] = [
      '10111010',
      '00000000',
      '00000000',
      '0',
      '00000000',
      '0000',
      '0000',
      '0',
      '0',
      '0000'
  ]
  </code></pre>
  
  <p>And this is what i'm trying right now :</p>
  
  <pre><code>stringToBytes(strings: any[]) {
      var arrayBuffer = new ArrayBuffer(144);
      var array = new Uint8Array(arrayBuffer);
      for (let string of strings) {
          // console.log('string from 1st for : ', string);
          for (var i = 0, l = string.length; i &lt; l; i++) {
              // console.log('string from 2nd for : ', string);
              array[i] = string.charCodeAt(i);
          }
      }
      console.log(array.buffer, 'array : ', array);
      return array.buffer;
  }
  </code></pre>
  
  <p>Is this che correct way? Any suggestion?</p>
  
  <p>Sorry for the bad english and if the question has some errors. </p>
  
  <p>Thanks in advice,
  Giorgio.</p>