title: Characteristic.value from Bluetooth reading in Swift
body: <p>I'm trying to read and convert into String a reading from a BT device.</p>
  
  <pre><code>&lt;CBCharacteristic: 0x1700a2e80, UUID = 2A9D, properties = 0x20, value = &lt;02ac08e1 07010a14 0029&gt;, notifying = YES&gt;
  </code></pre>
  
  <p>Based on example I found online I did</p>
  
  <pre><code>let u16 = (characteristic.value! as NSData).bytes.bindMemory(to: Int.self, capacity: characteristic.value!.count).pointee
  </code></pre>
  
  <p>but my u16 is null, even though characteristic.value contains</p>
  
  <pre><code>(lldb) dp characteristic.value! as NSData
  &lt;02ac08e1 07010a14 0029&gt;
  </code></pre>
  
  <p>Can anyone point me in the right direction?</p>