From 699b2a5273cb40200717150ae052f1ffa4fa3a33 Mon Sep 17 00:00:00 2001 From: fish Date: Tue, 7 May 2019 16:07:57 +0800 Subject: [PATCH] =?UTF-8?q?dpark=E5=9C=B0=E7=82=B9=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=BA=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/gateway.conf | 3 ++- loadconfig.go | 1 + worker.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/gateway.conf b/conf/gateway.conf index c3b5a4b..6d3bb94 100644 --- a/conf/gateway.conf +++ b/conf/gateway.conf @@ -211,5 +211,6 @@ "debug": true, "openserial":false, "open_tcp_server":true, - "check_serial":true + "check_serial":true, + "dpark_location":"spaoDevs" } diff --git a/loadconfig.go b/loadconfig.go index 86759ce..4987793 100644 --- a/loadconfig.go +++ b/loadconfig.go @@ -36,6 +36,7 @@ type Conf struct { OPENTCPSETVER bool `json:"open_tcp_server"` CHECKSERIAL bool `json:"check_serial"` LORANODES []LoraNode `json:"lora_nodes"` + DPARKLOCATION string `json:"dpark_location"` } //无线 下位机 diff --git a/worker.go b/worker.go index 62d3e2d..d765c1e 100644 --- a/worker.go +++ b/worker.go @@ -120,7 +120,7 @@ func yunhorn_hb_dpark_v1(){ //心跳数据 R_data.CODE = 1009 //spao点的公厕 - R_data.ID = "spaoDevs" + R_data.ID = conf.DPARKLOCATION //尿布台 R_data.VERSION = "yunhorn_hb_dpark" R_data.ONLINE = true