Skip to content

Conversation

@janhendry
Copy link

An example how one can implement ORSSerialPort in SwiftUI.

@armadsen armadsen self-assigned this Oct 3, 2020
@armadsen armadsen added this to the 2.1 milestone Oct 3, 2020
@armadsen
Copy link
Owner

armadsen commented Oct 3, 2020

Thanks for this! Give me a bit to review it, and I'll let you know if I have any feedback.

@armadsen armadsen changed the base branch from master to 2.1 October 3, 2020 02:47
@armadsen armadsen modified the milestones: 2.1, 2.2 Oct 3, 2020
@armadsen armadsen changed the base branch from 2.1 to 2.2 October 3, 2020 02:52
flemingm added a commit to flemingm/ORSSerialPort that referenced this pull request Jan 16, 2021
ORSSerialPort.h  one extra  { add in last commit in  - (instancetype)initWithDevice:(io_object_t)device; Line armadsen#163

Explained: ORSSerial/ORSSerialPacketDescriptor.h file not found in issue armadsen#169

defined the following in ORSSerialPort.h

// defined missing interface to fix XCODE 12.3 errors.
+ (io_object_t) deviceFromBSDPath:(NSString *)bsdPath;
+ (NSString *) bsdCalloutPathFromDevice:(io_object_t)aDevice;
+ (NSString *) modemNameFromDevice:(io_object_t)aDevice;
/**
 *  ORSSerialPort must be init'd using -initWithPath:
 */
- (instancetype) init;
- (void) reallyClosePort;

- (void) notifyDelegateOfPosixError;
- (void) notifyDelegateOfPosixErrorWaitingUntilDone:(BOOL)shouldWait;
- (void) setPortOptions;
- (void) updateModemLines;
- (void) receiveData:(NSData *)data;
@flemingm flemingm mentioned this pull request Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants