从v0.9.2开始默认移除了OPCUAServer,你可以手动开启;设备编辑不允许修改驱动
This commit is contained in:
parent
42f19b0415
commit
a445daf223
@ -11,7 +11,7 @@
|
|||||||
if (Model.Entity.DeviceTypeEnum == IoTGateway.Model.DeviceTypeEnum.Device)
|
if (Model.Entity.DeviceTypeEnum == IoTGateway.Model.DeviceTypeEnum.Device)
|
||||||
{
|
{
|
||||||
<wt:combobox field="Entity.ParentId" items="AllParents" />
|
<wt:combobox field="Entity.ParentId" items="AllParents" />
|
||||||
<wt:combobox field="Entity.DriverId" items="AllDrivers" />
|
//<wt:combobox field="Entity.DriverId" items="AllDrivers" />
|
||||||
<wt:switch field="Entity.AutoStart" />
|
<wt:switch field="Entity.AutoStart" />
|
||||||
<wt:switch field="Entity.CgUpload" />
|
<wt:switch field="Entity.CgUpload" />
|
||||||
<wt:textbox field="Entity.EnforcePeriod" />
|
<wt:textbox field="Entity.EnforcePeriod" />
|
||||||
|
@ -22,7 +22,7 @@ namespace Plugin
|
|||||||
public class MyMqttClient
|
public class MyMqttClient
|
||||||
{
|
{
|
||||||
private readonly ILogger<MyMqttClient> _logger;
|
private readonly ILogger<MyMqttClient> _logger;
|
||||||
private readonly ReferenceNodeManager? _uaNodeManager;
|
//private readonly ReferenceNodeManager? _uaNodeManager;
|
||||||
|
|
||||||
private SystemConfig? _systemConfig;
|
private SystemConfig? _systemConfig;
|
||||||
private IMqttClientOptions _clientOptions;
|
private IMqttClientOptions _clientOptions;
|
||||||
@ -34,7 +34,7 @@ namespace Plugin
|
|||||||
public MyMqttClient(UAService uaService, ILogger<MyMqttClient> logger)
|
public MyMqttClient(UAService uaService, ILogger<MyMqttClient> logger)
|
||||||
{
|
{
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
_uaNodeManager = uaService.server.m_server.nodeManagers[0] as ReferenceNodeManager;
|
//_uaNodeManager = uaService.server.m_server.nodeManagers[0] as ReferenceNodeManager;
|
||||||
ConnectAsync();
|
ConnectAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -586,16 +586,16 @@ namespace Plugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var payload in sendModel[device.DeviceName])
|
//foreach (var payload in sendModel[device.DeviceName])
|
||||||
{
|
//{
|
||||||
if (payload.Values != null)
|
// if (payload.Values != null)
|
||||||
foreach (var kv in payload.Values)
|
// foreach (var kv in payload.Values)
|
||||||
{
|
// {
|
||||||
//更新到UAService
|
// //更新到UAService
|
||||||
_uaNodeManager?.UpdateNode($"{device.Parent.DeviceName}.{device.DeviceName}.{kv.Key}",
|
// _uaNodeManager?.UpdateNode($"{device.Parent.DeviceName}.{device.DeviceName}.{kv.Key}",
|
||||||
kv.Value);
|
// kv.Value);
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
echo start
|
echo start
|
||||||
tag="0.8.1"
|
tag="0.9.2"
|
||||||
echo $tag
|
echo $tag
|
||||||
docker build -t iotgateway .
|
docker build -t iotgateway .
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo start
|
echo start
|
||||||
tag="0.8.1"
|
tag="0.9.2"
|
||||||
echo $tag
|
echo $tag
|
||||||
docker build -t iotgateway .
|
docker build -t iotgateway .
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user