How to get correct MQTT tcp ? project in Android Studio -


here code

    @override     protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.activity_main);      try {         //xxx.xxx.xxx.xx:xx problem         mqttclient client = new mqttclient("tcp://xxx.xxx.xxx.xx:xx", mqttclient.generateclientid());                } catch (mqttexception e) {         e.getmessage(); // client null     } 

what correct tcp address ? computer tcp ? or phone tcp ? how ?

i try computer tcp , phone ip , "client null "


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -