On this demo I tried to state that using Adobe AIR as my only tool to develop iOS apps I can manage a complete iBeacon bases solution.
Using a native extension i built a small app that send OSC messages to an OSC server running on an Arduino UNO + Ethernet Shield + Xbee Shield, those messages are diferent as user enter the iBeacons region, change its proximity to them or detects new beacons.
Two more UNO’s equipped with series one Xbee chips where coded as receivers for the main Arduino instructions, one for turning my kitchen light on/off and the other coded to play a random song on an iPod nano connected to a Yamaha Speaker/dock using standard NEC remote commands and some IR leds.
When I change my proximity to one specific beacon located behind my entrance door from NEAR to INMEDIATE the iOS device communicates to the Arduino system of the user imminent entrance, as well sends a notification to my pebble with a welcome message, all happens with no physical interaction with any of the devices involved, then all the real world events occurred inside my apartment as magic.
Apache Flex / Adobe Air library to make ease to work with Workers
No more burden to create an other project and / or an extra SWF for your Worker, everything is in-memory, don’t deal anymore with MessageChannel and other low level API, use Thread an Events.
Includes all the used classes and nothing more (except if you want to), register for you your typed object to pass them back and forth the Worker.