Skip to content

Commit

Permalink
从v0.9.2开始默认移除了OPCUAServer,你可以手动开启;设备编辑不允许修改驱动
Browse files Browse the repository at this point in the history
  • Loading branch information
iioter committed Aug 11, 2022
1 parent 42f19b0 commit a445daf
Show file tree
Hide file tree
Showing 29 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion IoTGateway/Areas/BasicData/Views/Device/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
24 changes: 12 additions & 12 deletions Plugins/Plugin/MyMqttClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -34,7 +34,7 @@ public class MyMqttClient
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();
}

Expand Down Expand Up @@ -586,16 +586,16 @@ await Client.PublishAsync("v1/gateway/telemetry",
}
}

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)
{
Expand Down
2 changes: 1 addition & 1 deletion auto-build-arm.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
echo start
tag="0.8.1"
tag="0.9.2"
echo $tag
docker build -t iotgateway .

Expand Down
2 changes: 1 addition & 1 deletion auto-build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
echo start
tag="0.8.1"
tag="0.9.2"
echo $tag
docker build -t iotgateway .

Expand Down
Binary file modified drivers/net6.0/DriverAllenBradley.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverAllenBradley.pdb
Binary file not shown.
Binary file modified drivers/net6.0/DriverFanuc.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverFanuc.pdb
Binary file not shown.
Binary file modified drivers/net6.0/DriverFanucHsl.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverFanucHsl.pdb
Binary file not shown.
Binary file modified drivers/net6.0/DriverMTConnect.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverMTConnect.pdb
Binary file not shown.
Binary file modified drivers/net6.0/DriverMitsubishi.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverMitsubishi.pdb
Binary file not shown.
Binary file modified drivers/net6.0/DriverModbusMaster.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverModbusMaster.pdb
Binary file not shown.
Binary file modified drivers/net6.0/DriverOPCDaClient.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverOPCDaClient.pdb
Binary file not shown.
Binary file modified drivers/net6.0/DriverOPCUaClient.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverOPCUaClient.pdb
Binary file not shown.
Binary file modified drivers/net6.0/DriverOmronFins.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverOmronFins.pdb
Binary file not shown.
Binary file modified drivers/net6.0/DriverSiemensS7.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverSiemensS7.pdb
Binary file not shown.
Binary file modified drivers/net6.0/DriverSimTcpClient.dll
Binary file not shown.
Binary file modified drivers/net6.0/DriverSimTcpClient.pdb
Binary file not shown.
Binary file modified drivers/net6.0/Microsoft.Extensions.Logging.Abstractions.dll
Binary file not shown.
Binary file modified drivers/net6.0/PluginInterface.dll
Binary file not shown.
Binary file modified drivers/net6.0/PluginInterface.pdb
Binary file not shown.

0 comments on commit a445daf

Please sign in to comment.