public void SimpleAck(byte invokeId, byte serviceChoice) { var apdu = new SimpleAck() { InvokeId = invokeId, ServiceChoise = serviceChoice }; var npdu = new BacNetIpNpdu(); //npdu.Destination = new BacNetAddress(); //npdu.Destination.Network = ByteConverter.GetBytes((ushort)65535); BacNetDevice.Instance.Services.Execute(npdu, apdu); //WaitForResponce(); }
public void ReceivedSimpleAck(BacNetRawMessage msg) { var npdu = new BacNetIpNpdu(msg.Npdu); var apdu = new SimpleAck(msg.Apdu); //WritePropertyOk if (apdu.ServiceChoise == 15) { BacNetDevice.Instance.Services.Confirmed.WritePropertyCallBack(apdu.InvokeId, "Ok"); } }