[Backend] N4取資料,拿掉top 100; obix網址改掉localhost

This commit is contained in:
wanli 2022-11-30 18:22:40 +08:00
parent 0aea9d189a
commit 13fdb6b203

View File

@ -41,11 +41,12 @@ namespace Backend.Controllers
{
List<Device_value> ds;
string url_slot = "slot:/TPE/B1|";
string top100 = " top 100 ";
string top100 = "";//" top 100 ";
webRequestService svc = new webRequestService();
string bql = url_slot + "bql:select " + top100 + " * from control:ControlPoint ";
//ds = svc.obixQuery("http://192.168.0.136:8080/obix/config/Arena/Program/ObixQuery/query/", bql);
ds = svc.obixQuery("http://localhost:8080/obix/config/Program/ObixQuery/query/", bql);
//ds = svc.obixQuery("http://localhost:8080/obix/config/Program/ObixQuery/query/", bql);
ds = svc.obixQuery("http://192.168.0.136:8080/obix/config/Program/ObixQuery/query/", bql);
apiResult.Code = "0000";
apiResult.Data = ds;