Search code examples
ipadsocketswifireal-timearduino

Sockets (TCP/UDP) on iPad WITHOUT Objective-C


Is there a way to make use of iPad/iPhone's socket capabilities without using Objective-C? Is there any way to expose this functionality with ActionScript 3 or some über HTML5 framework?

On the Arduino forums I'm trying to find out my hardware limits, here and here (I found out that using Objective-C this would be possible, even with bonjour discovery).

This is what I would like to achieve

(With webSockets, or with UDP. It doesn't have to be Haxe.)

I'm researching the possibility of using webSockets, which should be the easiest if it's possible. However, I'd like to consider all options. So I know Arduino can talk raw UDP. And I know that there is a CocoaAsyncSocket library for Objective-C. Only, I'd like to NOT prototype in Objective-C...

(So, this will be the n-th post on Stack Overflow about a Wi-Fi-enabled Arduino that I'd like to talk to an iDevice. Bluetooth is not an option due to Apple's non-prototyping-friendly-MFi-program.)


Solution

  • You can use the C POSIX socket API (probably easiest, if you know C). Or you can use HTML5/Javascript and Haxe or socket.io.