//
//  CDMEAConnector.h
//  DataManSDK
//
//  Created by Ferenc Knebl on 21/11/14.
//  Copyright (c) 2014 Cognex Corporation. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ExternalAccessory/ExternalAccessory.h>
#import <cmbSDK/CDMStreamConnector.h>

//#define CDM_EA_PROTOCOL @"com.demo.data"
#define CDM_EA_PROTOCOL @"com.cognex.dmcc"

@interface CDMEAConnector : CDMStreamConnector<NSStreamDelegate>

@property (weak) EAAccessory* accessory;

-(id)initWithExternalAccessory:(EAAccessory*)accessory
                      protocol:(NSString*)protocol
                      encoding:(NSStringEncoding)encoding
                      delegate:(id<CDMConnectorDelegate>)delegate
                 delegateQueue:(dispatch_queue_t)queue;

@end
