-
-
Notifications
You must be signed in to change notification settings - Fork 183
Command Line Demo
The CommandLineDemo subfolder of Examples contains ORSSerialPortCommandLineDemo. Versions in both Objective-C and Swift are available. This is a Foundation-based command line program demonstrating the use of ORSSerialPort in applications without a GUI. ORSSerialPortCommandLineDemo is a very simple serial terminal. It lists the available ports, allows the user to select one, and enter a baud rate. After that, typed input is sent out on the serial port, and data received from the port is printed to the console. It was written very quickly and is intended simply as demonstration that such an app is possible rather than as a starting point for production code. The source code for the entire program is contained in main.m (Objective-C) or main.swift (Swift).