Browse Source

蜂鸣增加档口参数

Lishi
747575620@qq.com 2 years ago
parent
commit
c6b93be2f4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      UHFHelper/UHF_RS485_Helper.cs

+ 2
- 2
UHFHelper/UHF_RS485_Helper.cs View File

@@ -188,9 +188,9 @@ namespace UHFHelper
/// <summary> /// <summary>
/// 发出蜂鸣声音3次,代表扣款成功! /// 发出蜂鸣声音3次,代表扣款成功!
/// </summary> /// </summary>
public async void OpenBeep()
public async void OpenBeep(int addr)
{ {
byte[] sendData = new byte[]{ 0x07, 0x01, 0x33, 0x08, 0x02, 0x03, 0x33,0xB1 };
byte[] sendData = new byte[]{ 0x07, (byte)addr, 0x33, 0x08, 0x02, 0x03, 0x33,0xB1 };
await SendMessageAsync(sendData, TimeSpan.FromSeconds(1), 6); await SendMessageAsync(sendData, TimeSpan.FromSeconds(1), 6);
} }
} }


Loading…
Cancel
Save