SwiftLibModbus

2.0.2

Swift wrapper for the libmodbus library (http://libmodbus.org/)
jollyjinx/SwiftLibModbus

What's New

2.0.2

2024-03-23T11:14:48Z

Strict Swift Concurrency Release.

SwiftLibModbus

Version 2 (Swift Concurrency)

Version 2 has been developed by @jollyjinx for Swift Concurrency Support and is being used by https://github.com/jollyjinx/swift-modbus-2-mqtt-bridge

Example usage:

let modbusDeviceA = try ModbusDevice(networkAddress:"example.com",port:502,deviceAddress:3)

let modbusDeviceB = try ModbusDevice(device: "/dev/tty.usbserial-42340",baudRate:9600)

let data:[UInt16] = try await modbusDeviceA.readRegisters(from: 0x1000, count: 0x10, type: .holding)

For example usage look at the modbus2mqtt bridge code.

Be aware that this code is MIT Licenced, but the CModbus library is LGPL Licensed.

Description

  • Swift Tools 5.10.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Oct 17 2024 18:26:04 GMT-0900 (Hawaii-Aleutian Daylight Time)