public void NewMessageArrived() { //string r3 = rmu900Helper.CheckWriteEpc(); //if (r3 != string.Empty) //{ // Debug.WriteLine("写入标签成功 " + r3); //} //string r2 = rmu900Helper.CheckInventory(); //if (r2 != string.Empty) //{ // this.UpdateEpcList(r2); // //AudioAlert.PlayAlert(); // Debug.WriteLine("读取到标签 " + r2); //} string r1 = rmu900Helper.ChekcInventoryOnce(); if (r1 != string.Empty) { Debug.WriteLine("读取到标签 " + r1); AudioAlert.PlayAlert(); this.UpdateEpcList(r1); } string r = rmu900Helper.CheckRmuStatus(); if (r == "ok") { MessageBox.Show("设备状态良好!"); } }
public void NewMessageArrived() { string r1 = rmu900Helper.ChekcInventoryOnce(); if (r1 != string.Empty) { // Debug.WriteLine("读取到标签 " + r1); AudioAlert.PlayAlert(); this.CheckToRemoteServer(r1); // this.UpdateEpcList(r1); } //string r = rmu900Helper.CheckRmuStatus(); //if (r == "ok") //{ // MessageBox.Show("设备状态良好!"); //} }
public void NewMessageArrived() { if (this.alreadyWriteSuccess == true) { return; } string r3 = rmu900Helper.CheckWriteEpc(); if (r3 != string.Empty) { this.alreadyWriteSuccess = true; AudioAlert.PlayAlert(); Debug.WriteLine("写入标签成功 " + r3); addTieBiao(); } string r1 = rmu900Helper.ChekcInventoryOnce(); if (r1 != string.Empty) { Debug.WriteLine("读取到标签 " + r1); AudioAlert.PlayAlert(); this.UpdateEpcList(r1); } }