从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) 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" />

View File

@ -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)
{ {

View File

@ -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 .

View File

@ -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.