- Jun 6, 2020
- 11,559
- 4,422
Hi
I have an app that works fine and connects nicely to mqtt with newer Android (8,9,10). I am using mqtt lib 1.01
I have tried to install it in a old 6.1 phone I have and the app crashes upon calling:
B4X:
*** Service (mqttservice) Create ***
Error occurred on line: 362 (MQTTService)
java.lang.IllegalArgumentException: tcp://m21.cloudmqtt.com :10000
at org.eclipse.paho.client.mqttv3.MqttConnectOptions.validateURI(MqttConnectOptions.java:473)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:273)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:167)
at anywheresoftware.b4j.objects.MqttAsyncClientWrapper.Initialize(MqttAsyncClientWrapper.java:51)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at...
I have an app that works fine and connects nicely to mqtt with newer Android (8,9,10). I am using mqtt lib 1.01
I have tried to install it in a old 6.1 phone I have and the app crashes upon calling:
B4X:
mqtt.Initialize("mqtt", BrokerProtocol & "://" & BrokerAddr & ":" & BrokerPort, BrokerClientID)
*** Service (mqttservice) Create ***
Error occurred on line: 362 (MQTTService)
java.lang.IllegalArgumentException: tcp://m21.cloudmqtt.com :10000
at org.eclipse.paho.client.mqttv3.MqttConnectOptions.validateURI(MqttConnectOptions.java:473)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:273)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:167)
at anywheresoftware.b4j.objects.MqttAsyncClientWrapper.Initialize(MqttAsyncClientWrapper.java:51)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید