Using ‘using’ with Phidget’s C# Library

The [`using`](http://msdn.microsoft.com/en-us/library/yh598w02.aspx) statement is an extremely useful feature of C# and it’s quite disappointing that Phidgets did not implement [`IDisposable`](http://msdn.microsoft.com/en-us/library/system.idisposable.aspx). Thankfully it’s fairly easy to create a wrapper for any Phidget that implements it so we can simply some code.

Continue reading “Using ‘using’ with Phidget’s C# Library”

Missing Namespaces on PhidgetSBC2’s Mono

Since we cannot install `mono-complete` on the PhidgetSBC2 currently, we are missing some of the C# namespaces. If you are trying to use any of the following namespaces and `gmcs` cannot find it, you will have to install the respective package.

Namespace Package
Mono.Data libmono-data2.0-cil
System.Data libmono-system-data2.0-cil
System.Data.Linq libmono-system-data-linq2.0-cil
System.DirectoryServices libmono-system-ldap2.0-cil
System.Messaging libmono-system-messaging2.0-cil
System.Runtime libmono-system-runtime2.0-cil
System.Web libmono-system-web2.0-cil
System.Web.Mvc libmono-system-web-mvc2.0-cil

Using Mono on the PhidgetSBC2

So this Monday my [PhidgetSBC2](http://www.phidgets.com/products.php?category=21&product_id=1072) arrived and I was super excited to get started playing around with the short-term goal of [being able to open my door lock remotely](http://lifehacker.com/5734528/hack-your-door-to-lock-and-unlock-via-text-message).

I really wanted to write the code in C# because it’s simply better than Java and it’s lot easier to implement a server in C# than in C. While the [manual for the SBC2][manual] says you can get Mono working if you install the correct packages, I couldn’t find any information on the Phidget website on how to do it, so I had to figure it out myself.

Continue reading “Using Mono on the PhidgetSBC2”