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”.
Under “Application” you should see the name of the application model for the application you are trying to run.
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:
On the edit screen of the device, click the search (magnifying glass) icon next to the “Applications” section
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:
Click Develop > My Apps
Click the Release icon (an upward facing arrow)
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.
From the “Advanced Settings” section of the dialog, choose “Publish”
If you want more detailed information on the application model, here is the reference
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
I will go through your instructions carefully to building the .app and see if it makes any difference.
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’ → ‘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) 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.
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 (and mangoh.io). I just want to verify that hostname resolution is working properly and that the problem is specific to the mqtt use case.