title: BLED112 set Encryption?
body: <p>I'm using BLED112 and &quot;pygatt BGAPI backend&quot; Python library to communicate to a custom 3rd party BLE device.</p>
  <p>Using the &quot;Bluegiga BLE GUI&quot; I can read/write to the device characteristic but only after clicking the &quot;Encrypt&quot; button next to the device.</p>
  <p>What is the python library equivalent to setting / enabling the encryption?</p>
  <p>I can't seem to find encryption parameter in either adapter initialization or in the device connection functions</p>
  <p>Simplified code:</p>
  <pre><code>import pygatt
  adapter = pygatt.BGAPIBackend()
  adapter.start()
  device = adapter.connect(&quot;01:23:45:67:89&quot;, address_type=pygatt.BLEAddressType.random, timeout=10)
  raw_read = device.char_read_handle(32)
  </code></pre>