sunspec
所属分类:通讯编程
开发工具:GO
文件大小:25KB
下载次数:0
上传日期:2023-01-21 10:40:10
上 传 者:
sh-1993
说明: 用于使用go编程语言创建符合sunspec的服务器和客户端设备的包。
(Package for creating sunspec compliant server and client devices using the go programming language.)
文件列表:
LICENCE (11356, 2023-01-21)
client.go (4277, 2023-01-21)
config.go (572, 2023-01-21)
conv.go (1449, 2023-01-21)
device.go (1432, 2023-01-21)
examples (0, 2023-01-21)
examples\basic (0, 2023-01-21)
examples\basic\main.go (16711, 2023-01-21)
exclusion.go (2446, 2023-01-21)
go.mod (139, 2023-01-21)
go.sum (354, 2023-01-21)
group.go (4405, 2023-01-21)
index.go (1697, 2023-01-21)
model.go (5729, 2023-01-21)
point.go (6806, 2023-01-21)
request.go (1262, 2023-01-21)
server.go (2899, 2023-01-21)
sunspec.go (802, 2023-01-21)
symbol.go (1284, 2023-01-21)
types.go (39137, 2023-01-21)
# Sunspec
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Go Report Card](https://goreportcard.com/badge/github.com/TRICERA-energy/sunspec)](https://goreportcard.com/report/github.com/TRICERA-energy/sunspec)
[![Go Reference](https://pkg.go.dev/badge/github.com/TRICERA-energy/sunspec.svg)](https://pkg.go.dev/github.com/TRICERA-energy/sunspec)
This package provides functions and definitions for creating [sunspec](https://sunspec.org/) compliant server and client devices using the go programming language.
Examples for using the package can be found [here](https://github.com/TRICERA-energy/sunspec/tree/master/examples).
**NOTICE: Currently only communication via modbus-TCP is supported.**
## Type system
Data types defined by the sunspec specification are represented in this library using their own custom interface. The package guarantees that point-type interfaces provided by the client or server also satisfy one of the type interfaces. This way assertion can be used to get explicit access to specific functionalities.
The following types are available:
```go
sunspec.Int16
sunspec.Int32
sunspec.Int***
sunspec.Pad
sunspec.Sunssf
sunspec.Uint16
sunspec.Uint32
sunspec.Uint***
sunspec.Acc16
sunspec.Acc32
sunspec.Acc***
sunspec.Count
sunspec.Bitfield16
sunspec.Bitfield32
sunspec.Bitfield***
sunspec.Enum16
sunspec.Enum32
sunspec.String
sunspec.Float32
sunspec.Float***
sunspec.Ipaddr
sunspec.Ipv6addr
sunspec.Eui48
```
近期下载者:
相关文件:
收藏者: