rossmann-engineering / EasyModbusTCP.NET

Modbus TCP, Modbus UDP and Modbus RTU client/server library for .NET implementations
947 stars 412 forks source link

Feature request: async methods #58

Open sandervandegeijn opened 3 years ago

sandervandegeijn commented 3 years ago

Would be nice to have those so calls can be awaited. :)

pkstrsk commented 1 year ago

I wrap them like this to await the ones I need: private async Task _writeSingleCoilAsync(int address, bool value) { await Task.Run(() => _modbus.WriteSingleCoil(address, value)); }