     }
     
     
-    // TODO: error handling!
     if data_chunk.length > 0 {
       do {
         let json = try NSJSONSerialization.JSONObjectWithData(data_chunk, options: .MutableContainers)
         let str = String(data: data_chunk,encoding: NSUTF8StringEncoding)
         
-        // TODO: this isn't really working...?
-        var decodedMessage : VehicleBaseMessage = VehicleBaseMessage()
-        
         
         var timestamp : NSInteger = 0
         if json["timestamp"] != nil {
           timestamp = json["timestamp"] as! NSInteger
-          decodedMessage.timestamp = timestamp
         }
         
         

          }
          
        }
        
        
        
        
        
        
        

    vmlog(peripheral.name!)
    vmlog(error)
    
    // just reconnect for now
    // TODO: allow configuration of auto-reconnect?
    if peripheral.name==OpenXCConstants.C5_VI_NAME {
