title: Use BlueZ Stack As A Peripheral (Advertiser)
body: <ul>
  <li><p><strong>Goal</strong>: Use BlueZ and an Bluetooth 4LE dongle to create a peripheral that advertises the bluetooth equivalent of "Hello World".</p></li>
  <li><p><strong>Where I'm At</strong>: I've currently got the BlueZ stack setup and downloaded, I can use the hci tool to recognize and see the Bluetooth dongle. I've tinkered with hciconfig leadv but I'm just not quite getting it/understanding what's going on.</p></li>
  <li><p><strong>What Help I Think I Need</strong>: I need to get it to the next step. If anyone can either point me towards a good resource, walk me through this, or anything, It would be much appreciated. If I need to do additional leg(search)work I can but I've scoured Google and SO with as many different derivatives of this question as I can think of.</p></li>
  </ul>
  
  <p>*I tagged this as CoreBluetooth as well in hopes that maybe an iOS dev has tinkered with this at some point.</p>
  
  <p>EDIT: In response to a comment, It seems prudent to state what my end goal is. I'd ultimately like to advertise via the dongle the simplest of simple messages/signals and pick that up on an iOS device (CoreBluetooth). I've been able to get the iOS side of things working well (tons of documentation compared to the Linux side of things) but that hard part for me is getting this adapter setup as a peripheral. The BlueZ stack is a terrible enigma for me.</p>
  
  <p>EDIT: After more digging, I eventually stumbled upon this post: <a href="https://stackoverflow.com/questions/16052882/raspberry-pi-bluetooth-4-0-connection">Raspberry Pi Bluetooth 4.0 Connection</a>.
  This has led me toward the topic of a GATT server, I'll continue pursuing this topic.</p>
  
  <p>EDIT: Alright so my quest for learning goes on. Over the past couple of days I've dived deeper into the hci*, sdptool, and gatttool tools. I've gotten to the point of being able to set the adapter to advertise, "hciconfig hci0 leadv". At this point, I can successfully "see" the adapter, but I cannot actually read anything off of it. I'm not even seeing the friendly name. I'll keep trucking on but as always, any help/suggestions are more than welcome.</p>
  
  <p>EDIT: Relevant Link, solid overview of Bluetooth LE pertaining to iOS.
  <a href="https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/AboutCoreBluetooth/Introduction.html#//apple_ref/doc/uid/TP40013257-CH1-SW1" rel="noreferrer">https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/AboutCoreBluetooth/Introduction.html#//apple_ref/doc/uid/TP40013257-CH1-SW1</a></p>
  
  <p>LAST EDIT: Hey all, this link covers how to create an iBeacon using a Raspberry Pi + BlueZ...
  <a href="http://www.wadewegner.com/2014/05/create-an-ibeacon-transmitter-with-the-raspberry-pi/" rel="noreferrer">http://www.wadewegner.com/2014/05/create-an-ibeacon-transmitter-with-the-raspberry-pi/</a></p>