     
     fileprivate func beginInitialization() {
 		self.initializing = true
+		print("Beginning initialization")
 		
 		//Get ourselves a fresh slate
         self.sendData(data: getTurnOffCommand())

			return
        }
		
		print("Is RX UUID")
		print("number of bytes \(characteristic.value!.count)")
		
		if self.gettingMAC && characteristic.value!.count == self.macReplyLen {
			
		objc_sync_enter(self.peripheral)
		var macBuffer = [UInt8](repeatElement(0, count: self.macReplyLen))
		(characteristic.value! as NSData).getBytes(&macBuffer, length: self.macReplyLen)
		objc_sync_exit(self.peripheral)
		
			macBuffer = (macBuffer as NSArray).filtered(using: NSPredicate(block: {
				(byte, bind) in
				(byte as! UInt8) == 58
			})) as! [UInt8]
			
			self.macStr = NSString(bytes: &macBuffer, length: macBuffer.count,

	var initializing = false
    fileprivate var setTimer: Timer = Timer()
	
	static let ADALE_COMMAND_MODE_TOGGLE = "+++\r\n"
	static let ADALE_GET_MAC = "AT+BLEGETADDR\n"
	static let ADALE_SET_NAME = "AT+GAPDEVNAME="
	static let ADALE_RESET = "ATZ\n"
	static let NAME_PREFIX = "HB"
	var macStr: String? = nil
	let macReplyLen = 17
