Mega Code Archive

 
Categories / C# / Data Types
 

Convert Plugwise Log Hex To Int

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PlugwiseLib.UTIL {     public class MessageHelper     {         public static int ConvertPlugwiseLogHexToInt(int logId)         {             int output = 0;             int newlogId = (logId - 278528) / 32;             output = newlogId;             return output;         }     } }