Valley.Net.Protocols.MeterBus
Valley.Net.Protocols.MeterBus copied to clipboard
UDP Binding with configurable receive port
I am using this MBus implementation with the UdpBinding:
var serializer = new MeterbusFrameSerializer();
endpoint = new IPEndPoint(IPAddress.Parse(Address), Port);
binding = new UdpBinding(endpoint,serializer);
binding.Error += Binding_Error;
binding.IoCompleted += Binding_IoCompleted;
master = new MBusMaster(binding);
master.Meter += Master_Meter;
I am interacting with a Moxa (TCP to Serial) converter to read one MBUS Device. This device send the data to fix port. So I have to configure the receiving (listening) port additionally to the IPEndpoint.