// // CommunicationProtocol.h // DUREX Vendor Control // // Created by Imanol Barba on 5/23/14. // Copyright (c) 2014 Emmoco. All rights reserved. // #import #define MAX_STRING_LENGTH ((int)200) #define MAX_RETRIES ((int)3) @interface CommunicationProtocol : NSObject -(Boolean) waitForMessageAvailable: (Boolean) status; -(Boolean) writeMessage: (NSString*) message; -(NSString*) readMessage; -(Boolean) establishConnection; +(id) sharedProtocol; @property Boolean messageAvailable; @end