从v0.9.2开始默认移除了OPCUAServer,你可以手动开启;设备编辑不允许修改驱动

This commit is contained in:
iioter 2022-08-11 09:09:07 +08:00
parent 42f19b0415
commit a445daf223
29 changed files with 15 additions and 15 deletions

View File

@ -11,7 +11,7 @@
if (Model.Entity.DeviceTypeEnum == IoTGateway.Model.DeviceTypeEnum.Device)
{
<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.CgUpload" />
<wt:textbox field="Entity.EnforcePeriod" />

View File

@ -22,7 +22,7 @@ namespace Plugin
public class MyMqttClient
{
private readonly ILogger<MyMqttClient> _logger;
private readonly ReferenceNodeManager? _uaNodeManager;
//private readonly ReferenceNodeManager? _uaNodeManager;
private SystemConfig? _systemConfig;
private IMqttClientOptions _clientOptions;
@ -34,7 +34,7 @@ namespace Plugin
public MyMqttClient(UAService uaService, ILogger<MyMqttClient> logger)
{
_logger = logger;
_uaNodeManager = uaService.server.m_server.nodeManagers[0] as ReferenceNodeManager;
//_uaNodeManager = uaService.server.m_server.nodeManagers[0] as ReferenceNodeManager;
ConnectAsync();
}
@ -586,16 +586,16 @@ namespace Plugin
}
}
foreach (var payload in sendModel[device.DeviceName])
{
if (payload.Values != null)
foreach (var kv in payload.Values)
{
//更新到UAService
_uaNodeManager?.UpdateNode($"{device.Parent.DeviceName}.{device.DeviceName}.{kv.Key}",
kv.Value);
}
}
//foreach (var payload in sendModel[device.DeviceName])
//{
// if (payload.Values != null)
// foreach (var kv in payload.Values)
// {
// //更新到UAService
// _uaNodeManager?.UpdateNode($"{device.Parent.DeviceName}.{device.DeviceName}.{kv.Key}",
// kv.Value);
// }
//}
}
catch (Exception ex)
{

View File

@ -1,5 +1,5 @@
echo start
tag="0.8.1"
tag="0.9.2"
echo $tag
docker build -t iotgateway .

View File

@ -1,6 +1,6 @@
#!/bin/bash
echo start
tag="0.8.1"
tag="0.9.2"
echo $tag
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.