Esempio n. 1
0
 /// <summary>
 /// Get a human readable string from an error code returned from a function in telldus-core
 /// </summary>
 /// <param name="errorNo">The error code to translate</param>
 /// <returns>A string ready to show to the user.
 /// TELLSTICK_SUCCESS
 /// TELLSTICK_ERROR_NOT_FOUND
 /// TELLSTICK_ERROR_PERMISSION_DENIED
 /// TELLSTICK_ERROR_DEVICE_NOT_FOUND
 /// TELLSTICK_ERROR_METHOD_NOT_SUPPORTED
 /// TELLSTICK_ERROR_COMMUNICATION
 /// TELLSTICK_ERROR_CONNECTING_SERVICE
 /// TELLSTICK_ERROR_UNKNOWN_RESPONSE
 /// TELLSTICK_ERROR_UNKNOWN
 /// </returns>
 public static unsafe string tdGetErrorString(int errorNo)
 {
     return(getString(UnmanagedImport.tdGetErrorString(errorNo)));
 }