从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)
|
||||
{
|
||||
<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" />
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
echo start
|
||||
tag="0.8.1"
|
||||
tag="0.9.2"
|
||||
echo $tag
|
||||
docker build -t iotgateway .
|
||||
|
||||
|
@ -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.
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