Most examples that we provided so far to interact with Yoctopuce USB sensors use sequential function calls. This is called the procedural approach, using polling. We recommend this technique as a starting point, because it is generally more intuitive and less risky. There is, however, an alternative approach, sometimes more convenient: the event-based technique, using callbacks. This is the new API feature that we present today.
We have pre-announced the Objective-C library a few weeks ago, it is now available on the programming libraries download page. From now on, you can create Mac OS X Cocoa applications that will natively communicate with Yoctopuce modules (directly using USB, or via TCP).
Let's be honest, last week post about USB Christmas tree was a bit lame. It was fun to blink all these color leds, but that was a lot of Yocto-Color devices to connect for a result very similar to a $10 ornament you would buy from the nearest hardware store. So we decided to improve the concept.
This week, we will present something that will be published shortly: the high-level API for Objective-C. The most insightful readers may have already picked up some hints about it. For now, this is only a Mac OS X version, but IOS support will follow after, don't worry.
1 ... 10 ... 20 21 22 23 24 25 26 27