diff --git a/db/gateway.db b/db/gateway.db index 540f044..fc64590 100644 Binary files a/db/gateway.db and b/db/gateway.db differ diff --git a/worker.go b/worker.go index 8504b1c..d240d8c 100644 --- a/worker.go +++ b/worker.go @@ -41,6 +41,11 @@ func yunhorn_ys_l_v1(data_buf []byte){ device.ID=demoDevice.ID device.VERSION=demoDevice.VERSION device.ONLINE=demoDevice.ONLINE + + demoDevice.DATA["data"+strconv.Itoa(1)]=rand.Intn(2) + demoDevice.DATA["data"+strconv.Itoa(2)]=rand.Intn(2) + demoDevice.DATA["data"+strconv.Itoa(3)]=rand.Intn(2) + demoDevice.DATA["data"+strconv.Itoa(7)]=data_int[0] demoDevice.DATA["data"+strconv.Itoa(8)]=rand.Intn(2) device.DATA=demoDevice.DATA