             if let valueX = json["value"] as? NSInteger {
               value = valueX
             }
-            
             
             let rsp : VehicleDiagnosticResponse = VehicleDiagnosticResponse()
             rsp.timestamp = timestamp

    }
    
    
    // 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
        }
        
        

            rsp.success = success
            rsp.payload = payload
            rsp.value = value
            
            let tupple : NSMutableString = ""
            tupple.appendString("\(String(bus))-\(String(id))-\(String(mode))-")
