B4J Question ConnectAndReconnect in a NON-UI Server

CR95

Active Member
Licensed User
I would like tto use the "famous" ConnectAndReconnect subroutine in a B4J Non-UI application
https://www.b4x.com/android/forum/threads/b4x-mqtt-connect-reconnect.80815/#content

If I create a standard B4J program, it connects immediatly
If I create a Non-UI B4J (Console) program, it does not connect and stays handing after
B4X:
Wait For Mqtt_Connected (Success As Boolean)
(The subroutine is placed in a class).

What could block the connexion ?
 

aminoacid

Well-Known Member
Licensed User
Longtime User
I have
I would like tto use the "famous" ConnectAndReconnect subroutine in a B4J Non-UI application
https://www.b4x.com/android/forum/threads/b4x-mqtt-connect-reconnect.80815/#content

If I create a standard B4J program, it connects immediatly
If I create a Non-UI B4J (Console) program, it does not connect and stays handing after
B4X:
Wait For Mqtt_Connected (Success As Boolean)
(The subroutine is placed in a class).

What could block the connexion ?

Never had any issues using this sub in my UI and console applications. If you could post the entire sub that's in you program, that would help. SOmetimes a simple change could cause an issue.
 
Upvote 0
Top