public bool ShowLedScreen(string IP, int Port, string[] msg, int displayMode = 0, int rowIndex = 1, int fontColor = 1) { bool flag = true; try { LED_PARAMETER_STRUCT param = new LED_PARAMETER_STRUCT { fontColor = fontColor, ip = IP, port = Port, displayMode = displayMode, Msg = msg, rowIndex = rowIndex }; flag = flag && LNK_LED_ISDK_X86.Connect(IP); flag = flag && LNK_LED_ISDK_X86.SendCommand(param); } catch (Exception exception) { LogHelper.Log.Error(exception.Message); } return(flag); }
public bool Sound(string IP, int Port, string[] msg, int soundSize, int sex = 0, int displayMode = 0, int rowIndex = 1) { bool flag = true; try { VOICE_PARAMETER_STRUCT param = new VOICE_PARAMETER_STRUCT { ip = IP, volume = soundSize }; foreach (string str in msg) { param.content = param.content + str; } flag = flag && LNK_LED_ISDK_X86.Connect(IP); flag = flag && LNK_LED_ISDK_X86.VoviceSend(param); } catch (Exception exception) { LogHelper.Log.Error(exception.Message); } return(flag); }