@@ -505,6 +505,8 @@ public override void LinkToApi(BasicTriList trilist, uint joinStart, string join
505
505
trilist . SetSigTrueAction ( joinMap . PowerOn . JoinNumber , PowerOn ) ;
506
506
trilist . SetSigTrueAction ( joinMap . PowerOff . JoinNumber , PowerOff ) ;
507
507
508
+ trilist . SetSigTrueAction ( joinMap . Poll . JoinNumber , ( ) => Poll ( ) ) ;
509
+
508
510
trilist . SetSigTrueAction ( joinMap . TestPatternOn . JoinNumber , TestPatternOn ) ;
509
511
trilist . SetSigTrueAction ( joinMap . TestPatternOff . JoinNumber , TestPatternOff ) ;
510
512
@@ -1051,7 +1053,13 @@ public void PowerOn()
1051
1053
}
1052
1054
1053
1055
Debug . Console ( MegapixelHeliosDebug . Notice , this , "PowerOn: content-'{0}'" , content ) ;
1054
- _client . SendRequest ( "PATCH" , "/api/v1/public" , content ) ;
1056
+
1057
+ CrestronInvoke . BeginInvoke ( ( o ) =>
1058
+ {
1059
+ _client . SendRequest ( "PATCH" , "/api/v1/public" , content ) ;
1060
+ Thread . Sleep ( 2000 ) ;
1061
+ Poll ( ) ;
1062
+ } ) ;
1055
1063
}
1056
1064
1057
1065
/// <summary>
@@ -1083,7 +1091,13 @@ public void PowerOff()
1083
1091
}
1084
1092
1085
1093
Debug . Console ( MegapixelHeliosDebug . Notice , this , "PowerOff: content-'{0}'" , content ) ;
1086
- _client . SendRequest ( "PATCH" , "/api/v1/public" , content ) ;
1094
+
1095
+ CrestronInvoke . BeginInvoke ( ( o ) =>
1096
+ {
1097
+ _client . SendRequest ( "PATCH" , "/api/v1/public" , content ) ;
1098
+ Thread . Sleep ( 2000 ) ;
1099
+ Poll ( ) ;
1100
+ } ) ;
1087
1101
}
1088
1102
1089
1103
/// <summary>
@@ -1156,7 +1170,13 @@ public void TestPatternOn()
1156
1170
}
1157
1171
1158
1172
Debug . Console ( MegapixelHeliosDebug . Notice , this , "TestPatternEnable: content-'{0}'" , content ) ;
1159
- _client . SendRequest ( "PATCH" , "/api/v1/public" , content ) ;
1173
+
1174
+ CrestronInvoke . BeginInvoke ( ( o ) =>
1175
+ {
1176
+ _client . SendRequest ( "PATCH" , "/api/v1/public" , content ) ;
1177
+ Thread . Sleep ( 2000 ) ;
1178
+ Poll ( ) ;
1179
+ } ) ;
1160
1180
}
1161
1181
1162
1182
/// <summary>
@@ -1191,7 +1211,13 @@ public void TestPatternOff()
1191
1211
}
1192
1212
1193
1213
Debug . Console ( MegapixelHeliosDebug . Notice , this , "TestPatternEnable: content-'{0}'" , content ) ;
1194
- _client . SendRequest ( "PATCH" , "/api/v1/public" , content ) ;
1214
+
1215
+ CrestronInvoke . BeginInvoke ( ( o ) =>
1216
+ {
1217
+ _client . SendRequest ( "PATCH" , "/api/v1/public" , content ) ;
1218
+ Thread . Sleep ( 2000 ) ;
1219
+ Poll ( ) ;
1220
+ } ) ;
1195
1221
}
1196
1222
1197
1223
/// <summary>
@@ -1279,7 +1305,13 @@ public void RecallInputByName(string name)
1279
1305
}
1280
1306
1281
1307
Debug . Console ( MegapixelHeliosDebug . Notice , this , "RecallInputByName: content-'{0}'" , content ) ;
1282
- _client . SendRequest ( "PATCH" , "/api/v1/public" , content ) ;
1308
+
1309
+ CrestronInvoke . BeginInvoke ( ( o ) =>
1310
+ {
1311
+ _client . SendRequest ( "PATCH" , "/api/v1/public" , content ) ;
1312
+ Thread . Sleep ( 3000 ) ;
1313
+ Poll ( ) ;
1314
+ } ) ;
1283
1315
}
1284
1316
}
1285
1317
}
0 commit comments