rossmann-engineering / EasyModbusTCP.NET

Modbus TCP, Modbus UDP and Modbus RTU client/server library for .NET implementations
922 stars 396 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 10 months 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)); }