Forums » Union Coders »
UPC protocol
Added by Marko Heijnen 569 days ago
When using Flash/Actionscript you can use Reactor. That is the SDK you guys building.
I was wondering if you know if other people tried to create an SDK for other languages.
Reason is that i'm now looking in how I can communicate with the union server trough Objective-C.
Trying to build something by my own (If I can get it).
Because it would be a great avord that you can control even with an iPhone or an Android phone
Replies
RE: UPC protocol - Added by derek clayton 568 days ago
We've created Mariner which is a simple Java based Union client. It's used in the server release for sending UPC from the command line (eg. stop server).
Of course we'd love to see the community create clients in other languages. 8)
Derek
RE: UPC protocol - Added by Marko Heijnen 568 days ago
Okea. I did saw the name Mariner in the specification but couldn't find precise what it was.
I will give it a try and hope with the help of the library asyncsocket it is not going to be to hard.
RE: UPC protocol - Added by colin moock 563 days ago
hi marko,
actually we have a new client sdk written in javascript that we have not announced yet; it's called "Orbiter". Orbiter's source code shows many of the basic tasks a client sdk has to do in order to communicate with Union. if you are planning to write your own SDK, Orbiter would likely be a useful reference. you can download the latest unreleased version here (source is included):
http://www.unionplatform.com/staging/releases/orbiter/latest/
note, however, that Orbiter will not work with Union 1.0 Alpha 7 nor with the current Union server on tryunion.com. if you want to try running Orbiter with your own server, let us know. we can arrange to get you a recent build of Union.
depending on what you are trying to create, Orbiter might actually be your best option for iPhone/Android clients. we specifically tested and built Orbiter to run properly in the web browsers on those phones. or, if you want to write a native app that uses Orbiter, you could consider using PhoneGap. see:
lastly, i know that kenichi ueno made a Union client prototype in objective c. i'll ask him if he's willing to post his source code here.
colin
RE: UPC protocol - Added by Marko Heijnen 562 days ago
Hey Colin,
First thanks of your reply and your help.
I want to do several kinds of experiment to control hardware like with an iPhone application and show the result at an website so everyone can see it.
I just ordered an arduino so I hope next week it arrive. So I really can play with it.
I never thought about using javascript. I will going to look at PhoneGap and test some stuff and look what the possibilities are.
If it isn't much to ask I would love to test Orbiter, so if we can arrange something, that would be cool.
Marko
RE: UPC protocol - Added by colin moock 562 days ago
no problem. i'll contact you off list.
RE: UPC protocol - Added by Kenichi UENO 561 days ago
Hello Marko,
I had made an union client prototype as a study to learn the objective-c for iPhone.
I will share the project files, although it can only connect to the union server over HTTP connection, keep alive, join a room, and show all UPC messages on the console.. (The sample does not show anything on the screen.)
Anyway, I hope it will help.
Kenichi
UnionTest.zip (745.7 KB)