title: BlueZ: How to set up a GATT server from the command line
body: <p>I would like to know if there is a way to set up a gatt server from the Linux command line. I know that the BlueZ gatttool command allows you to act as a gatt client and interrogate a remote gatt server, however, I do not think that this tool can be used to set up a server. </p>
  
  <p>What I want to achieve is a gatt server, <strong>created from the command line</strong>, and can be interrogated by any central device (e.g. iOS or Android device) to connect to the GATT server, discover the services and characteristics, and manipulate the data in the characteristics.  </p>
  
  <p>Example:</p>
  
  <p>Gatt Server with 1 service which contains 3 characteristics.</p>
  
  <ul>
  <li>Service uuid = 0xFFFF</li>
  <li>Char 1 uuid = 0xAAAA, value = 01, properties = readable</li>
  <li>Char 2 uuid = 0xBBBB, value = 00, properties = readable &amp; writable</li>
  <li>Char 3 uuid = 0xCCCC, value = 02, properties = notifiable</li>
  </ul>
  
  <p>I am using kernel version 3.11.0 and BlueZ 5.19 </p>