1234567891011121314151617181920212223 |
- //
- // Serial.h
- // CaseLights
- //
- // Created by Thomas Buck on 14.12.15.
- // Copyright © 2015 xythobuz. All rights reserved.
- //
-
- #import <Foundation/Foundation.h>
-
- @interface Serial : NSObject
-
- @property (strong) NSString *portName;
-
- - (NSInteger)openPort;
- - (void)closePort;
- - (BOOL)isOpen;
- - (BOOL)hasData;
- - (void)sendString:(NSString *)string;
-
- + (NSArray *)listSerialPorts;
-
- @end
|