docs(readme): 添加pc mqtt项目说明和编译指令添加项目介绍和多平台编译说明到README.md,包含amd64和armv7架构的编译命令示例。

This commit is contained in:
Wuqiyang312 2024-08-22 17:45:11 +08:00
parent 6274a2bac0
commit 357cda1549
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
```