go_mqtt

command module
v0.0.0-...-8afe5d0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

配置文件

配置文件字段 config.yml
qos: 2 
clientid: '7d7c43db-d061-42cf-9e9f-5c9e36b1dd34' 
broker: 'tcp://10.0.0.27:1883' 
user_name: 'Chindeo' 
password: 'P@ssw0rd' 
num: 50 

udp 测试 端口 10006

cd udp & go run main.go

#输入 json 修改配置
{"qos":2,"clientid":"7d7c43db-d061-42cf-9e9f-5c9e36b1dd34","broker":"tcp://10.0.0.27:1883","user_name":"Chindeo","password":"P@ssw0rd","num":50}

msg

{"type":"cmd","data":{"text":"go env"}}

编译参数

GOOS=linux;GOARCH=arm

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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