DeviceName.EventName.Subscribe(YourFunctionName)