Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ORSSerialSwiftUIDemo #163

Open
wants to merge 4 commits into
base: 2.2
Choose a base branch
from
Open

Add ORSSerialSwiftUIDemo #163

wants to merge 4 commits into from

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.

None yet

3 participants