From 357cda1549de5cceb0ce8fab5d842265903d748e Mon Sep 17 00:00:00 2001 From: Wuqiyang312 Date: Thu, 22 Aug 2024 17:45:11 +0800 Subject: [PATCH] =?UTF-8?q?docs(readme):=20=E6=B7=BB=E5=8A=A0pc=20mqtt?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AF=B4=E6=98=8E=E5=92=8C=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D=E5=92=8C=E5=A4=9A=E5=B9=B3=E5=8F=B0=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=E5=88=B0README.md=EF=BC=8C=E5=8C=85=E5=90=AB?= =?UTF-8?q?amd64=E5=92=8Carmv7=E6=9E=B6=E6=9E=84=E7=9A=84=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=91=BD=E4=BB=A4=E7=A4=BA=E4=BE=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- REAME.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 REAME.md diff --git a/REAME.md b/REAME.md new file mode 100644 index 0000000..9a553bf --- /dev/null +++ b/REAME.md @@ -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 +``` \ No newline at end of file