Coder Social home page Coder Social logo

swiftserialportsample's Introduction

SwiftSerialPortSample

An attempt to convert Apples SerialPortSample project over to Swift

The serial port sample from Apple is a simple application written in C that shows some of the tasks required for interacting with a serial port from Mac OS X. It covers IOKit as well as the POSIX commands that are used to find serial ports, open them, change their attributes etc.

As a C program there are a lot of challenges in converting this over to Swift. CoreFoundation is supposedly simple to use from Swift, though I have found a few issues. The POSIX function calls are not very well supported either.

This experiment has been updated to Swift 2.0 and is actually slightly functional.

Issues, Annoyances

ioctl and fcntl aren't useable from Swift as they need varags.

swiftserialportsample's People

Contributors

danielpi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

xd785 yurygitman

swiftserialportsample's Issues

Errors in IOKitPlayground.playground

Hi Daniel! First off, this looks like a really useful project; I'm glad I came across it.

Secondly, I wanted to let you know that when I opened up IOKitPlayground.playground, I got a few errors (screenshot below):

screen shot 2015-06-27 at 12 48 09 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.