public static String _mqtt_connected(boolean _success) throws Exception{
//BA.debugLineNum = 138;BA.debugLine="Sub mqtt_Connected (Success As Boolean)";
//BA.debugLineNum = 139;BA.debugLine="ProgressDialogHide";
anywheresoftware.b4a.keywords.Common.ProgressDialogHide();
//BA.debugLineNum = 140;BA.debugLine="connecting = False";
_vvv6 = anywheresoftware.b4a.keywords.Common.False;
//BA.debugLineNum = 141;BA.debugLine="If Success = False Then";
if (_success==anywheresoftware.b4a.keywords.Common.False) {
//BA.debugLineNum = 142;BA.debugLine="CallSub(Main, \"CancelProgressDialog\")";
anywheresoftware.b4a.keywords.Common.CallSubNew(processBA,(Object)(mostCurrent._vvvvvvvvvvvvv0.getObject()),"CancelProgressDialog");
//BA.debugLineNum = 143;BA.debugLine="CallSub3(Main, \"SendMessageBox\", \"Could not conn";
anywheresoftware.b4a.keywords.Common.CallSubNew3(processBA,(Object)(mostCurrent._vvvvvvvvvvvvv0.getObject()),"SendMessageBox",(Object)("Could not connect to scoreboard. Please try again."),(Object)("Connection Error"));
//BA.debugLineNum = 144;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("09175046",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0);
}else {
//BA.debugLineNum = 146;BA.debugLine="CallSub3(Main, \"SendProgressDialog\", \"Standing b";
anywheresoftware.b4a.keywords.Common.CallSubNew3(processBA,(Object)(mostCurrent._vvvvvvvvvvvvv0.getObject()),"SendProgressDialog",(Object)("Standing by for scoreboard. Please Wait."),(Object)(anywheresoftware.b4a.keywords.Common.False));
//BA.debugLineNum = 147;BA.debugLine="TimeoutTimer.Enabled = True";
_vvv0.setEnabled(anywheresoftware.b4a.keywords.Common.True);
//BA.debugLineNum = 148;BA.debugLine="mqtt.Subscribe(\"SendToScoreKeeperRemote\", 0) 'Su";
_vvv1.Subscribe("SendToScoreKeeperRemote",(int) (0)); <---CRASH
//BA.debugLineNum = 149;BA.debugLine="mqtt.Subscribe(\"ping\", 1) 'Subscribe to the hear";
_vvv1.Subscribe("ping",(int) (1));
//BA.debugLineNum = 150;BA.debugLine="mqtt.Subscribe(\"Connected\", 1) 'Subscribe to the";
_vvv1.Subscribe("Connected",(int) (1));
//BA.debugLineNum = 152;BA.debugLine="SendCommandToScoreboard(\"Connect\", \"Connected\")";
_sendcommandtoscoreboard("Connect",(Object)("Connected"));
};
//BA.debugLineNum = 154;BA.debugLine="End Sub";
return "";
}