void rfid_Attach(object sender, Phidget22.Events.AttachEventArgs e)
    {
        RFID attachedDevice = ((RFID)sender);
        int  deviceSerial   = attachedDevice.DeviceSerialNumber;

        Debug.Log("Attached device " + attachedDevice.DeviceSerialNumber);
    }
    void digitalInput_Attach(object sender, Phidget22.Events.AttachEventArgs e)
    {
        DigitalInput attachedDevice = ((DigitalInput)sender);
        int          deviceSerial   = attachedDevice.DeviceSerialNumber;

        Debug.Log("Attached device " + attachedDevice.DeviceSerialNumber);
    }
 void OnAttachDistanceSensor(object sender, Phidget22.Events.AttachEventArgs e)
 {
     try {
         sensorDistance.SonarQuietMode = true;
     } catch (PhidgetException ex) {
         Debug.Log("Error setting initial data: " + ex.Message);
     }
 }
 void OnAttachServo(object sender, Phidget22.Events.AttachEventArgs e)
 {
     try {
         servo.TargetPosition = servo.MaxPosition;
         servo.Engaged        = true;
     } catch (PhidgetException ex) {
         Debug.Log("Error setting initial data: " + ex.Message);
     }
 }
 void dcmotor_attach(object sender, Phidget22.Events.AttachEventArgs e)
 {
     Debug.Log("Phidget Attached!");
 }
 void onAttach(object sender, Phidget22.Events.AttachEventArgs e)
 {
     Debug.Log("Attach");
     //TODO: Set data interval to minimum
 }