util

package
v0.0.0-...-6752d0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Byte2ToInt

func Byte2ToInt(b []byte) int

func Byte4ToFloat32

func Byte4ToFloat32(b []byte) float32

func FileGetContents

func FileGetContents(path string) string

func GetCpuMem

func GetCpuMem() (float64, float64)

func GetDiskPercent

func GetDiskPercent() float64

func Less6

func Less6(in float64) float64

Less6 6位有效数

func NewTLSConfig

func NewTLSConfig() *tls.Config

func RunShell

func RunShell(s string) string

Types

type AuthInfo

type AuthInfo struct {
	Username,
	Password,
	MqttClientId string
}

func CalculateSign

func CalculateSign(clientId, productKey, deviceName, deviceSecret, timeStamp string) AuthInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL