Merge remote-tracking branch 'origin/main'

This commit is contained in:
Wuqiyang312 2024-08-22 18:02:18 +08:00
commit 4941c051a1
1 changed files with 29 additions and 0 deletions

29
REAME.md Normal file
View File

@ -0,0 +1,29 @@
# pc mqtt
# 介绍
pc mqtt用于远程监控设备状态并通过mqtt协议发送到HS服务器
# 多平台编译
## amd64
### wimdows:
```cmd
go build client.go
```
### linux:
```shell
GOOS=linux GOARCH=amd64 go build client.go
```
## armv7
### linux:
```shell
GOARM=7 GOOS=linux GOARCH=arm CC=/home/wuqiyang/gcc/arm-none-linux-gnueabihf-13.3/bin/arm-none-linux-gnueabihf-gcc go build client.go
```