         guard let response = ATTReadByGroupTypeResponse(attributeDataList: attributeData)
             else { fatalError("Could not create ATTReadByGroupTypeResponse. Attribute Data: \(attributeData)") }
         
-        log?("Response: \(response)")
-        
-        connection.send(response) { _ in }
+        respond(response)
     }
-    /*
+    
     private func readByType(pdu: ATTReadByTypeRequest) {
         
         let opcode = pdu.dynamicType.attributeOpcode

            else { errorResponse(opcode, .AttributeNotFound, pdu.startHandle); return }
        
        
    }*/
}


        connection.sendError(opcode, error: error, handle: handle)
    }
    
    private func respond<T: ATTProtocolDataUnit>(response: T) {
        
        log?("Response: \(response)")
        
        connection.send(response) { _ in }
    }
    
    // MARK: Callbacks
