# How to Find Out "mqttBrokerPassword" in Airvantage?

**URL:** <https://mangoh.discourse.group/t/how-to-find-out-mqttbrokerpassword-in-airvantage/522>\
**Category:** Cloud & Connectivity\
**Created:** [May 10, 2017, 9:49pm UTC](https://mangoh.discourse.group/t/how-to-find-out-mqttbrokerpassword-in-airvantage/522 "2017-05-10T21:49:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wavefront\_yk](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/wavefront_yk/32/176_2.png) [@Wavefront\_yk](https://mangoh.discourse.group/u/Wavefront_yk)\
**Post date:** [May 10, 2017, 9:49pm UTC](https://mangoh.discourse.group/t/how-to-find-out-mqttbrokerpassword-in-airvantage/522/1 "2017-05-10T21:49:17Z")

</div>

Hi,

I am trying to install “sensorTOAirVantage” app in my mangOH board, but ran into error to start the app. I wonder if there is instructions to find out “mqttBrokerPassword”.

> root@swi-mdm9x15:~# config get sensorToAirVantage:/  
> /  
> mqttBrokerHost == [eu.airvantage.net](http://eu.airvantage.net)  
> mqttBrokerPort == 1883  
> mqttBrokerPassword == ???

Thanks  
YK

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [May 15, 2017, 2:58pm UTC](https://mangoh.discourse.group/t/how-to-find-out-mqttbrokerpassword-in-airvantage/522/2 "2017-05-15T14:58:11Z")

</div>

Hi YK,

1. login to airvantage
2. Select Monitor \> Systems from the drop-down menu
3. Click on your system name
4. In the top right, click More \> Edit
5. Under “Application” you should see the name of the application model for the application you are trying to run.
6. Next to the application, there is a lock icon. If you click that icon, you will be prompted with a dialog that will allow you to either view or set the password.

If you don’t have the application model registered with that device record in AirVantage, then you will need to follow these steps:

1. On the edit screen of the device, click the search (magnifying glass) icon next to the “Applications” section
2. Search within the dialog to find the application model that you want.

If the application model you want is not found in that dialog, then it may need to be loaded into AirVantage. Follow these steps:

1. Click Develop \> My Apps
2. Click the Release icon (an upward facing arrow)
3. Click the “Select a file” button and browse to the appropriate zip file. AirVantage expects a zip file that contains a `.app` file. [Here are some examples of `.app` files](https://github.com/mangOH/Demos/tree/master/AirVantage).
4. From the “Advanced Settings” section of the dialog, choose “Publish”

If you want more detailed information on the application model, [here is the reference](https://source.sierrawireless.com/airvantage/av/reference/application/)

Let me know if anything was unclear.

---

<div class="post-metadata">

**Author:** ![Wavefront\_yk](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/wavefront_yk/32/176_2.png) [@Wavefront\_yk](https://mangoh.discourse.group/u/Wavefront_yk)\
**Post date:** [May 15, 2017, 11:08pm UTC](https://mangoh.discourse.group/t/how-to-find-out-mqttbrokerpassword-in-airvantage/522/3 "2017-05-15T23:08:47Z")

</div>

Thanks for your detailed information. Really appreciated.

I could not see “unlock” next to my application. ☹  
Not sure if I doesn’t build my .app correctly. I built my app using “av-pack” command:  
**av-pack -u helloWorld.wp85.update -b \_build\_helloWorld/wp85 -t abcCo.jsmith.helloWorld** from:  
[http://legato.io/legato-docs/latest/howToAVConnect.html](http://legato.io/legato-docs/latest/howToAVConnect.html)

I will go through your instructions carefully to building the .app and see if it makes any difference.

 ![](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/a7d958dd3b710158cf492f500e9b740de19f358b.png)

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [May 17, 2017, 8:10pm UTC](https://mangoh.discourse.group/t/how-to-find-out-mqttbrokerpassword-in-airvantage/522/4 "2017-05-17T20:10:57Z")

</div>

Try just putting the .app file in a .zip file and uploading that instead of using av-pack.

---

<div class="post-metadata">

**Author:** ![Wavefront\_yk](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/wavefront_yk/32/176_2.png) [@Wavefront\_yk](https://mangoh.discourse.group/u/Wavefront_yk)\
**Post date:** [May 19, 2017, 11:25pm UTC](https://mangoh.discourse.group/t/how-to-find-out-mqttbrokerpassword-in-airvantage/522/5 "2017-05-19T23:25:10Z")

</div>

Thanks David!

I have successfully built the .app and uploaded into the AirVantage and I can see the icon and set the password.

But when I start the app, connection seems published but failed on “getaddrinfo” and then connection get lost. Could you please advise if anything that I missed?

Here is the mqtt log

> root@yk-mangoh:~# logread -f | grep “mqtt” &  
> root@yk-mangoh:~# app start sensorToAirVantage  
> root@yk-mangoh:~# May 19 23:15:14 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME ExtractFileDescriptor() 33 | Received fd (12).  
> May 19 23:15:14 yk-mangoh user.warn Legato: -WRN- | _UNKNOWN_[1887]/framework T=main | LE\_FILENAME le\_fdMonitor\_Create() 672 | FD Monitor object name ‘sensorToAirVantage.sensorToAirVantage.mqtt’ truncated to ‘sensorToAirVantage.sensorToAirV’.  
> May 19 23:15:14 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 96 | MQTT Broker URL(‘[eu.airvantage.net](http://eu.airvantage.net)’ → ‘[eu.airvantage.net](http://eu.airvantage.net)’)  
> May 19 23:15:14 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 102 | MQTT Broker Port(1883 → 1883)  
> May 19 23:15:14 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 108 | Keep Alive(60 → 60 seconds)  
> May 19 23:15:14 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 114 | QoS(0 → 0)  
> May 19 23:15:14 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c Handle\_mqtt\_Config() 412 | Sending response to client session 0x27c1c : 0 bytes sent  
> May 19 23:15:14 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_AddSessionStateHandler() 165 | add session state handler(0xb6f51ef8)  
> May 19 23:15:14 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c Handle\_mqtt\_AddSessionStateHandler() 681 | Sending response to client session 0x27c1c : 4 bytes sent  
> May 19 23:15:14 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Connect() 121 | connect password(‘mymangoh’)  
> May 19 23:15:14 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connectUser() 1673 | pw(‘mymangoh’)  
> May 19 23:15:14 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp **T=main | mqttClient.c mqttClient\_connectUser() 1681 | initiated data connection**  
> May 19 23:15:14 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | le\_data\_client.c le\_data\_Request() 745 | Sending message to server and waiting for response : 0 bytes sent  
> May 19 23:15:14 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connectData() 1372 | requesting data connection(0x10000003)  
> May 19 23:15:14 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c Handle\_mqtt\_Connect() 451 | Sending response to client session 0x27c1c : 0 bytes sent  
> May 19 23:15:24 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 942 | interface(‘rmnet0’) connected(1)  
> May 19 23:15:24 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 947 | starting session  
> May 19 23:15:24 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.Default Timer Pool’ overflowed. Expanded to 4 blocks.  
> May 19 23:15:24 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.Default Timer Pool’ overflowed. Expanded to 5 blocks.  
> May 19 23:15:24 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.Default Timer Pool’ overflowed. Expanded to 6 blocks.  
> May 19 23:15:24 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_startSession() 1342 | connect([eu.airvantage.net:1883](http://eu.airvantage.net:1883))  
> **May 19 23:15:25 yk-mangoh user.err Legato: =ERR= | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connect() 997 | getaddrinfo() failed(-3)**  
> **\> May 19 23:15:25 yk-mangoh user.err Legato: =ERR= | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_startSession() 1346 | mqttClient\_connect() failed(-3)**  
> May 19 23:15:25 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_startSession() 1353 | start session failed  
> May 19 23:15:25 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_SendConnStateEvent() 192 | MQTT connected(0), error(-3), sub-error(-1)  
> May 19 23:15:25 yk-mangoh user.err Legato: =ERR= | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 951 | mqttClient\_startSession() failed(-3)  
> May 19 23:15:25 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_disconnectData() 1464 | releasing the data connection.  
> May 19 23:15:25 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | le\_data\_client.c le\_data\_Release() 803 | Sending message to server and waiting for response : 4 bytes sent  
> May 19 23:15:25 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_SendConnStateEvent() 192 | MQTT connected(0), error(0), sub-error(0)  
> May 19 23:15:25 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c AsyncResponse\_mqtt\_AddSessionStateHandler() 618 | Sending message to client session 0x27c1c : 13 bytes sent  
> May 19 23:15:25 yk-mangoh user.info Legato: INFO | sensorToAirVantage[1887]/sensorToAirVantage T=main | sensorToAirVantage.cpp mqttSessionStateHandler() 299 | Session State: connected=0, connectErrorCode=-3, subscriptionErrorCode=-1  
> May 19 23:15:25 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c AsyncResponse\_mqtt\_AddSessionStateHandler() 618 | Sending message to client session 0x27c1c : 13 bytes sent  
> May 19 23:15:25 yk-mangoh user.info Legato: INFO | sensorToAirVantage[1887]/sensorToAirVantage T=main | sensorToAirVantage.cpp mqttSessionStateHandler() 299 | Session State: connected=0, connectErrorCode=0, subscriptionErrorCode=0  
> May 19 23:15:26 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 942 | interface(‘’) connected(0)  
> May 19 23:15:26 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 962 | disconnected(‘’)  
> May 19 23:15:26 yk-mangoh user.err Legato: =ERR= | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_disconnectData() 1447 | no data connection reference.

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [May 19, 2017, 11:39pm UTC](https://mangoh.discourse.group/t/how-to-find-out-mqttbrokerpassword-in-airvantage/522/6 "2017-05-19T23:39:41Z")

</div>

Rather than running the demo application, try to run `cm data connect` from the command line. That should establish a data connection. Once the connection is established, try to ping a few well known hosts like [google.com](http://google.com) (and [mangoh.io](http://mangoh.io)😄). I just want to verify that hostname resolution is working properly and that the problem is specific to the mqtt use case.

---

<div class="post-metadata">

**Author:** ![Wavefront\_yk](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/wavefront_yk/32/176_2.png) [@Wavefront\_yk](https://mangoh.discourse.group/u/Wavefront_yk)\
**Post date:** [May 20, 2017, 12:08am UTC](https://mangoh.discourse.group/t/how-to-find-out-mqttbrokerpassword-in-airvantage/522/7 "2017-05-20T00:08:10Z")

</div>

data is connected. I also tried to stop and start…

Also, I can start and stop helloWorld app from AirVantage.

> root@yk-mangoh:~#  
> root@yk-mangoh:~# ping google.ca  
> PING google.ca (216.58.193.67): 56 data bytes  
> 64 bytes from 216.58.193.67: seq=0 ttl=50 time=606.684 ms  
> 64 bytes from 216.58.193.67: seq=1 ttl=50 time=446.207 ms  
> ^C  
> — google.ca ping statistics —  
> 3 packets transmitted, 2 packets received, 33% packet loss  
> round-trip min/avg/max = 446.207/526.445/606.684 ms  
> root@yk-mangoh:~#

> root@yk-mangoh:~#  
> root@yk-mangoh:~#  
> root@yk-mangoh:~# cm data  
> Index: 1  
> APN: ltemobile.apn  
> PDP Type: IPV4V6  
> Connected: yes

> root@yk-mangoh:~#  
> root@yk-mangoh:~#  
> root@yk-mangoh:~#

> root@yk-mangoh:~# app restart sensorToAirVantage  
> root@yk-mangoh:~# Connected through interface ‘rmnet0’  
> May 20 00:11:27 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c CleanupClientData() 195 | Client 0x27c1c is closed !!!  
> May 20 00:11:27 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c CleanupClientData() 221 | Found session ref 0x27c1c; match found, so needs cleanup  
> May 20 00:11:27 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_RemoveSessionStateHandler() 177 | remove session state handler(0x1000000f)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME ExtractFileDescriptor() 33 | Received fd (12).  
> May 20 00:11:28 yk-mangoh user.warn Legato: -WRN- | _UNKNOWN_[8149]/framework T=main | LE\_FILENAME le\_fdMonitor\_Create() 672 | FD Monitor object name ‘sensorToAirVantage.sensorToAirVantage.mqtt’ truncated to ‘sensorToAirVantage.sensorToAirV’.  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 96 | MQTT Broker URL(‘[eu.airvantage.net](http://eu.airvantage.net)’ → ‘[eu.airvantage.net](http://eu.airvantage.net)’)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 102 | MQTT Broker Port(1883 → 1883)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 108 | Keep Alive(60 → 60 seconds)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 114 | QoS(0 → 0)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c Handle\_mqtt\_Config() 412 | Sending response to client session 0x27c1c : 0 bytes sent  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_AddSessionStateHandler() 165 | add session state handler(0xb6f51ef8)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c Handle\_mqtt\_AddSessionStateHandler() 681 | Sending response to client session 0x27c1c : 4 bytes sent  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Connect() 121 | connect password(‘mangoh’)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connectUser() 1673 | pw(‘mangoh’)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connectUser() 1681 | initiated data connection  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | le\_data\_client.c le\_data\_Request() 745 | Sending message to server and waiting for response : 0 bytes sent  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connectData() 1372 | requesting data connection(0x10000015)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c Handle\_mqtt\_Connect() 451 | Sending response to client session 0x27c1c : 0 bytes sent  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 942 | interface(‘rmnet0’) connected(1)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 947 | starting session  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.Default Timer Pool’ overflowed. Expanded to 31 blocks.  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.Default Timer Pool’ overflowed. Expanded to 32 blocks.  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.Default Timer Pool’ overflowed. Expanded to 33 blocks.  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.hashMap\_refDefault Ti’ overflowed. Expanded to 36 blocks.  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_startSession() 1342 | connect([eu.airvantage.net:1883](http://eu.airvantage.net:1883))  
> May 20 00:11:28 yk-mangoh user.err Legato: =ERR= | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connect() 997 | getaddrinfo() failed(-3)  
> May 20 00:11:28 yk-mangoh user.err Legato: =ERR= | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_startSession() 1346 | mqttClient\_connect() failed(-3)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_startSession() 1353 | start session failed  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_SendConnStateEvent() 192 | MQTT connected(0), error(-3), sub-error(-1)  
> May 20 00:11:28 yk-mangoh user.err Legato: =ERR= | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 951 | mqttClient\_startSession() failed(-3)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_disconnectData() 1464 | releasing the data connection.  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | le\_data\_client.c le\_data\_Release() 803 | Sending message to server and waiting for response : 4 bytes sent  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_SendConnStateEvent() 192 | MQTT connected(0), error(0), sub-error(0)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c AsyncResponse\_mqtt\_AddSessionStateHandler() 618 | Sending message to client session 0x27c1c : 13 bytes sent  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c AsyncResponse\_mqtt\_AddSessionStateHandler() 618 | Sending message to client session 0x27c1c : 13 bytes sent  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | sensorToAirVantage[8149]/sensorToAirVantage T=main | sensorToAirVantage.cpp mqttSessionStateHandler() 299 | Session State: connected=0, connectErrorCode=-3, subscriptionErrorCode=-1  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | sensorToAirVantage[8149]/sensorToAirVantage T=main | sensorToAirVantage.cpp mqttSessionStateHandler() 299 | Session State: connected=0, connectErrorCode=0, subscriptionErrorCode=0  
> May 20 00:11:27 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c CleanupClientData() 195 | Client 0x27c1c is closed !!!  
> May 20 00:11:27 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c CleanupClientData() 221 | Found session ref 0x27c1c; match found, so needs cleanup  
> May 20 00:11:27 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_RemoveSessionStateHandler() 177 | remove session state handler(0x1000000f)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME ExtractFileDescriptor() 33 | Received fd (12).  
> May 20 00:11:28 yk-mangoh user.warn Legato: -WRN- | _UNKNOWN_[8149]/framework T=main | LE\_FILENAME le\_fdMonitor\_Create() 672 | FD Monitor object name ‘sensorToAirVantage.sensorToAirVantage.mqtt’ truncated to ‘sensorToAirVantage.sensorToAirV’.  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 96 | MQTT Broker URL(‘[eu.airvantage.net](http://eu.airvantage.net)’ → ‘[eu.airvantage.net](http://eu.airvantage.net)’)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 102 | MQTT Broker Port(1883 → 1883)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 108 | Keep Alive(60 → 60 seconds)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Config() 114 | QoS(0 → 0)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c Handle\_mqtt\_Config() 412 | Sending response to client session 0x27c1c : 0 bytes sent  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_AddSessionStateHandler() 165 | add session state handler(0xb6f51ef8)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c Handle\_mqtt\_AddSessionStateHandler() 681 | Sending response to client session 0x27c1c : 4 bytes sent  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttMain.c mqtt\_Connect() 121 | connect password(‘mangoh’)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connectUser() 1673 | pw(‘mangoh’)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connectUser() 1681 | initiated data connection  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | le\_data\_client.c le\_data\_Request() 745 | Sending message to server and waiting for response : 0 bytes sent  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connectData() 1372 | requesting data connection(0x10000015)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c Handle\_mqtt\_Connect() 451 | Sending response to client session 0x27c1c : 0 bytes sent  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 942 | interface(‘rmnet0’) connected(1)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 947 | starting session  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.Default Timer Pool’ overflowed. Expanded to 31 blocks.  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.Default Timer Pool’ overflowed. Expanded to 32 blocks.  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.Default Timer Pool’ overflowed. Expanded to 33 blocks.  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘framework.hashMap\_refDefault Ti’ overflowed. Expanded to 36 blocks.  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_startSession() 1342 | connect([eu.airvantage.net:1883](http://eu.airvantage.net:1883))  
> May 20 00:11:28 yk-mangoh user.err Legato: =ERR= | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_connect() 997 | getaddrinfo() failed(-3)  
> May 20 00:11:28 yk-mangoh user.err Legato: =ERR= | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_startSession() 1346 | mqttClient\_connect() failed(-3)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_startSession() 1353 | start session failed  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_SendConnStateEvent() 192 | MQTT connected(0), error(-3), sub-error(-1)  
> May 20 00:11:28 yk-mangoh user.err Legato: =ERR= | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_dataConnectionStateHandler() 951 | mqttClient\_startSession() failed(-3)  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_disconnectData() 1464 | releasing the data connection.  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | le\_data\_client.c le\_data\_Release() 803 | Sending message to server and waiting for response : 4 bytes sent  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/mqttClientComp T=main | mqttClient.c mqttClient\_SendConnStateEvent() 192 | MQTT connected(0), error(0), sub-error(0)  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c AsyncResponse\_mqtt\_AddSessionStateHandler() 618 | Sending message to client session 0x27c1c : 13 bytes sent  
> May 20 00:11:28 yk-mangoh user.debug Legato: DBUG | mqttClient[569]/framework T=main | mqtt\_server.c AsyncResponse\_mqtt\_AddSessionStateHandler() 618 | Sending message to client session 0x27c1c : 13 bytes sent  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | sensorToAirVantage[8149]/sensorToAirVantage T=main | sensorToAirVantage.cpp mqttSessionStateHandler() 299 | Session State: connected=0, connectErrorCode=-3, subscriptionErrorCode=-1  
> May 20 00:11:28 yk-mangoh user.info Legato: INFO | sensorToAirVantage[8149]/sensorToAirVantage T=main | sensorToAirVantage.cpp mqttSessionStateHandler() 299 | Session State: connected=0, connectErrorCode=0, subscriptionErrorCode=0

---

<div class="post-metadata">

**Author:** ![Wavefront\_yk](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/wavefront_yk/32/176_2.png) [@Wavefront\_yk](https://mangoh.discourse.group/u/Wavefront_yk)\
**Post date:** [May 20, 2017, 12:17am UTC](https://mangoh.discourse.group/t/how-to-find-out-mqttbrokerpassword-in-airvantage/522/8 "2017-05-20T00:17:53Z")

</div>

my mangoh board version and it has bluetooth driver

root@yk-mangoh:~# cm info  
Device: WP8548  
Firmware: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
Bootloader: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
priIdPn: 9905383  
priIdRev: 01.03  
root@yk-mangoh:~#  
root@yk-mangoh:~#  
root@yk-mangoh:~# legato version  
16.10.2\_f458c9fff3bcf7150b3c42a6793cd089\_modified  
root@yk-mangoh:~#
