From b11f72bc54c6ccd7c895a2b45b2da01bdaf7c561 Mon Sep 17 00:00:00 2001 From: fish Date: Sat, 21 Sep 2019 18:28:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84mqtt=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=E5=8F=AF=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=EF=BC=8C=E6=97=B6=E9=97=B4=E6=88=B3=E7=B2=BE=E7=A1=AE?= =?UTF-8?q?=E5=88=B0=E7=BA=B3=E7=B1=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/gateway.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/conf/gateway.yaml b/conf/gateway.yaml index 05eabf7..29c2754 100644 --- a/conf/gateway.yaml +++ b/conf/gateway.yaml @@ -1,5 +1,5 @@ -gateway_info: #本地网关信息 - id: F23FACD2-7D85-4FCC-88E3-C5B78931A26D #网关ID +"gateway_info": #本地网关信息 + "id": "F23FACD2-7D85-4FCC-88E3-C5B78931A26D" #网关ID version: yunhorn_gw_c_v1 #网关版本 location: [113.960347, 22.54143] #本地网关经纬度 目前暂无用 config: @@ -109,7 +109,9 @@ loradevices_list: - [85, 2, 242, 170] iconurl: "http://192.168.3.188/icons/" websocketurl: ["192.168.3.216:8080", "/echo"] -post_to_server: "http://192.168.3.154:8082/statis/push" #"https://smartoilets.cn/socketServer/statis/push" #数据收集服务器 +# post_to_server: "http://192.168.3.154:8082/statis/push" #"https://smartoilets.cn/socketServer/statis/push" #数据收集服务器 +# post_to_server: https://120.77.206.101:8090/statis/push" #数据收集服务器 +post_to_server: "https://smartoilets.cn/ydc/statis/push" #数据收集服务器 debug: true #是否打印debug log openserial: false #是否采集串口数据 open_tcp_server: true #是否开启TCP端口接收无线数据 @@ -125,9 +127,9 @@ mqtt_open: false mqtt_keepAlive: 30 #mqtt心跳时间间隔 单位是s mqtt_timeout: 10 #mqtt超时时间 单位s mqtt_topic: "yunhorn/dpark/1/#" -mqtt_broker: "tcp://192.168.3.159:1883" -mqtt_username: "admin" -mqtt_password: "admin" +mqtt_broker: "tcp://smartoilets.cn:1883" +mqtt_username: "dpark" +mqtt_password: "Jev@nwd0409" #2019/08/16 06:50:00 Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub \ No newline at end of file