Beispiel #1
0
        public static string GetDeviceInfoAsString(SirenOfShameInfo deviceInfo)
        {
            StringBuilder info = new StringBuilder();

            info.AppendLine("FirmwareVersion: " + deviceInfo.FirmwareVersion + "\n");
            info.AppendLine("HardwareType: " + deviceInfo.HardwareType + "\n");
            info.AppendLine("HardwareVersion: " + deviceInfo.HardwareVersion + "\n");
            info.AppendLine("AudioMode: " + deviceInfo.AudioMode + "\n");
            info.AppendLine("AudioPlayDuration: " + deviceInfo.AudioPlayDuration + "\n");
            info.AppendLine("LedMode: " + deviceInfo.LedMode + "\n");
            info.AppendLine("LedPlayDuration: " + deviceInfo.LedPlayDuration + "\n");
            info.AppendLine("External Memory Size: " + SiUnitHelpers.ToBinaryString(deviceInfo.ExternalMemorySize) + "B\n");
            return(info.ToString());
        }
Beispiel #2
0
        public static string GetDeviceInfoAsString()
        {
            SirenOfShameInfo deviceInfo = _sirenOfShameDevice.ReadDeviceInfo();

            return(GetDeviceInfoAsString(deviceInfo));
        }