开启指定FBox所有监控点
可开启当前在线FBox的所有监控点数据推送
/// <summary>
/// 开启盒子所有监控点
/// </summary>
public void StartAllDMonData()
{
//盒子掉线后,每次上线均需要调此接口
_fbox.StartAllDataMonitorPointsOnBox(new BoxArgs(boxNo)).Wait();//boxNo为盒子号
}
//在Program,Main函数中调用
class Program
{
static void Main(string[] args)
{
using (var fbox = new FBoxDemo())
{
fbox.Start(); //启动
fbox.StartAllDMonData();//开启FBox所有监控点
}
}
}
开启监控点数据推送
可开启指定监控点数据推送
/// <summary>
/// 开启监控点数据推送
/// </summary>
public void StartDmonData()
{
// 调接口新增监控点后,需要调此接口才能收到新增点的数据推送
_fbox.StartDataMonitorPoint(new DataMonitorPointArgs()
{
BoxNo = boxNo, //盒子号
DataMonitorUid = 113470726140747285 //监控点Uid
});
}
//在Program,Main函数中调用
class Program
{
static void Main(string[] args)
{
using (var fbox = new FBoxDemo())
{
fbox.Start(); //启动
fbox.StartDmonData();//开启监控点
}
}
}