Update modalità invio parametri allo start

This commit is contained in:
S.E.Locatelli
2022-06-28 12:40:56 +02:00
parent 683f53ad87
commit e7d41527ef
2 changed files with 10 additions and 18 deletions
+8 -16
View File
@@ -1,18 +1,10 @@
{
"mMapWrite": {
"L1_Batch": {
"name": "L1_Batch",
"description": "Send Batch",
"setSupplier": {
"name": "setSupplier",
"description": "Send Batch req (GrowerCode|Descript)",
"tipoMem": "String",
"memAddr": "L1_Batch",
"index": 0,
"size": 50
},
"L2_Batch": {
"name": "L2_Batch",
"description": "Send Batch",
"tipoMem": "String",
"memAddr": "L2_Batch",
"memAddr": "setSupplier",
"index": 0,
"size": 50
}
@@ -20,7 +12,7 @@
"mMapRead": {
"VelTonnOra": {
"name": "VelTonnOra",
"description": "Velocità Impianto Tonnellate / Ora",
"description": "Vel. Impianto Tonnellate / Ora",
"memAddr": "VelTonnOra",
"tipoMem": "Real",
"index": 0,
@@ -31,7 +23,7 @@
},
"VelFruttiMinuto": {
"name": "VelFruttiMinuto",
"description": "Velocità Impianto Frutti / Minuto",
"description": "Vel. Impianto Frutti / Minuto",
"memAddr": "VelFruttiMinuto",
"tipoMem": "Real",
"index": 0,
@@ -64,7 +56,7 @@
},
"L1_Batch": {
"name": "L1_Batch",
"description": "Send Batch",
"description": "Curr Batch",
"tipoMem": "String",
"memAddr": "L1_Batch",
"index": 0,
@@ -75,7 +67,7 @@
},
"L2_Batch": {
"name": "L2_Batch",
"description": "Send Batch",
"description": "Curr Batch",
"tipoMem": "String",
"memAddr": "L2_Batch",
"index": 0,
+2 -2
View File
@@ -4961,12 +4961,12 @@ namespace IOB_WIN_NEXT
allParam.Add(currItem);
}
// invio su cloud parametri SE sono connesso all'OPC-ua...
if (connectionOk)
if (serverOk)
{
rawData = JsonConvert.SerializeObject(allParam, Formatting.Indented);
if (serverOk)
{
utils.callUrl($"{urlSaveAllParams}", rawData);
var resp = utils.callUrl($"{urlSaveAllParams}", rawData);
}
else
{