package
0.0.3-rc0
Repository: https://github.com/things-go/aliyun-iot.git
Documentation: pkg.go.dev

# Functions

Generate 根据MetaTriad和region生成签名 默认不支持PreAUTH 默认安全模式为SecureModeTcpDirectPlain) 默认使能物模型 默认固定时间戳 默认hmacsha256签名加密 TODO: itls x509方式.
NewTLSConfig new tls config from ca file 如果ca有"base64://"前缀,直接解析后面的字符串,否则认为这是个ca为文件名.
TLSConfig tls config.
WithDeviceModel 设置是否支持物模型,默认为物模型.
WithDeviceToken 设置device token NOTE: 只在SecureModeNoPreRegistration时有效,其它忽略.
WithExtParamsKV 添加一个扩展参数的键值对,键值对将被添加到clientID的扩展参数上.
WithExtRRPC 支持扩展RRPC 仅物模型下支持,默认不支持.
WithPort 设置端口, 默认1883.
WithSDKVersion 设备SDK版本.
WithSecureMode 设置安全模式, 默认SecureModeTCPDirectPlain,tcp直连.
WithSignMethod 设置签名方法,目前只支持hmacsha1,hmacmd5,hmacsha256(默认).
WithTimestamp 添加当前时间的毫秒值,可以不传递,默认: fixedTimestamp,单位ms.

# Constants

ITLS, ID2方式.
一型一密免预注册.
TCP直连.
TLS直连.
SecureMode 支持的安全模型.

# Structs

Sign 签名后的信息.

# Type aliases

Option option.