   ble_addr_t _local_bda;
   char       _device_name[BLE_MAX_DEVICE_NAME+1];  
   ble_client_get_factory_config(&_local_bda, _device_name);
-  String name = "Sci";
-  name += String(_local_bda.addr[4], HEX);
-  name += String(_local_bda.addr[5], HEX);
+  BleLongName += String(_local_bda.addr[4], HEX);
+  BleLongName += String(_local_bda.addr[5], HEX);
   DEBUG_PRINT("Address is: ");
-  DEBUG_PRINTLN(name);
-  blePeripheral.setLocalName(name.c_str());
+  DEBUG_PRINTLN(BleLongName);
+  blePeripheral.setLocalName(BleLongName.c_str());
 
   // advertise the service
   blePeripheral.begin();  



void loop() {
  // poll peripheral
  blePeripheral.poll();


BLEService whistlepunkService("555a0001-0aaa-467a-9538-01f0652c74e8"); // create service
// Must be 20 char long to accomodate full-size messages.
const char *value = "                     ";

String BleLongName = "Sci";
bool serialConnected = false;

BLECharacteristic valueCharacteristic("555a0003-0aaa-467a-9538-01f0652c74e8", BLENotify, value);

