# Unable to see data in mqtt

**URL:** <https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030>\
**Category:** Uncategorized\
**Created:** [November 24, 2021, 2:12am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030 "2021-11-24T02:12:09Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 2:12am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/1 "2021-11-24T02:12:09Z")

</div>

After doing app start mqttPublisher and mqttSubscriber, I am not able to see the data

Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c app\_Start() 3471 | Starting app ‘mqttPublisher’  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/log’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/dev/log’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/null’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/dev/null’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/zero’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/dev/zero’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/urandom’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/dev/urandom’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/legato/systems/current/lib/liblegato.so’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/liblegato.so’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/ld-linux.so.3’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/ld-linux.so.3’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libc.so.6’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libc.so.6’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libpthread.so.0’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libpthread.so.0’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/librt.so.1’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/librt.so.1’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libdl.so.2’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libdl.so.2’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libgcc\_s.so.1’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libgcc\_s.so.1’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libm.so.6’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libm.so.6’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/usr/lib/libstdc++.so.6’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libstdc++.so.6’: Already exists  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/legato/systems/current/apps/mqttPublisher/read-only/lib/libComponent\_testPublisher.so’ to '/legato/systems/current/appsWriteable/mq  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/legato/systems/current/apps/mqttPublisher/read-only/bin/testPublisher’ to '/legato/systems/current/appsWriteable/mqttPublisher/bin/  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateTmpFs() 1788 | Mounted tmpfs at /legato/systems/current/appsWriteable/mqttPublisher/tmp.  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2154 | Created file link ‘/tmp/legato/serviceDirectoryServer’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/tmp/legato/serviceDirectoryServer’.  
Jan 6 05:34:53 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2154 | Created file link ‘/tmp/legato/serviceDirectoryClient’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/tmp/legato/serviceDirectoryClient’.  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c app\_Start() 3471 | Starting app ‘mqttSubscriber’  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/log’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/dev/log’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/null’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/dev/null’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/zero’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/dev/zero’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/urandom’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/dev/urandom’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/legato/systems/current/lib/liblegato.so’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/lib/liblegato.so’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/ld-linux.so.3’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/lib/ld-linux.so.3’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libc.so.6’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/lib/libc.so.6’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libpthread.so.0’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/lib/libpthread.so.0’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/librt.so.1’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/lib/librt.so.1’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libdl.so.2’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/lib/libdl.so.2’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libgcc\_s.so.1’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/lib/libgcc\_s.so.1’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libm.so.6’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/lib/libm.so.6’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/usr/lib/libstdc++.so.6’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/lib/libstdc++.so.6’: Already exists  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/legato/systems/current/apps/mqttSubscriber/read-only/lib/libComponent\_testSubscriber.so’ to '/legato/systems/current/appsWriteable/  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/legato/systems/current/apps/mqttSubscriber/read-only/bin/testSubscriber’ to '/legato/systems/current/appsWriteable/mqttSubscriber/b  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateTmpFs() 1788 | Mounted tmpfs at /legato/systems/current/appsWriteable/mqttSubscriber/tmp.  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2154 | Created file link ‘/tmp/legato/serviceDirectoryServer’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/tmp/legato/serviceDirectoryServer’.  
Jan 6 05:35:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2154 | Created file link ‘/tmp/legato/serviceDirectoryClient’ to ‘/legato/systems/current/appsWriteable/mqttSubscriber/tmp/legato/serviceDirectoryClient’.

---

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 2:13am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/2 "2021-11-24T02:13:25Z")

</div>

I do see that the app runs successfully. Do I have to run any other commands other than specified in the [legato-af/apps/sample/mqtt at 19.02-release · legatoproject/legato-af · GitHub](https://github.com/legatoproject/legato-af/tree/19.02-release/apps/sample/mqtt) ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 24, 2021, 2:25am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/3 "2021-11-24T02:25:26Z")

</div>

did you run the Mosquitto MQTT server on the Linux workstation

---

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 4:20am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/4 "2021-11-24T04:20:12Z")

</div>

Yes, mosquitto MQTT is running on my linux system

---

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 4:22am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/5 "2021-11-24T04:22:02Z")

</div>

I am able to publish messages via MQTT Explorer app and get the data using mosquitto\_sub

---

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 4:25am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/6 "2021-11-24T04:25:36Z")

</div>

do I have to run any other app to start seeing the data? i am not able to see LE\_INFO logs as well. How can I see if the connection is established?

---

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 4:27am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/7 "2021-11-24T04:27:42Z")

</div>

mosquitto\_sub -t 355882100106097/messages/json  
sagar  
sagar  
sagar

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 24, 2021, 4:42am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/8 "2021-11-24T04:42:08Z")

</div>

you can add some debug message in COMPONENT\_INIT() function and see if you can see the message in LE\_INFO().

---

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 4:49am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/9 "2021-11-24T04:49:36Z")

</div>

Yes I already added that, in the publisher, but I couldnt see that logs as well.

The last line:

COMPONENT\_INIT  
{  
// server is running on the Linux workstation connected to the target  
#if MQTT\_SERVER\_USE\_SECURED\_CONNECTION  
const char mqttBrokerURI = “ssl://192.168.2.3:8883”;  
const uint8\_t mqttPassword = {‘S’, ‘W’, ‘I’};  
#else  
const char mqttBrokerURI = “tcp://192.168.2.3:1883”;  
//const char mqttBrokerURI = “mqtt://192.168.2.3:1883”;  
//const uint8\_t mqttPassword = {‘A’,‘@’,‘I’,‘L’,‘o’,‘T’};  
#endif

```
LE_INFO("Reached here, and starting");

```

---

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 4:52am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/10 "2021-11-24T04:52:39Z")

</div>

Detailed Log:

Jan 6 08:20:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c app\_Stop() 3596 | Stopping app ‘mqttPublisher’  
Jan 6 08:20:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c app\_StopComplete() 4753 | app ‘mqttPublisher’ has stopped.  
Jan 6 08:20:00 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘mqttPublisher’ has stopped.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c app\_Start() 3471 | Starting app ‘mqttPublisher’  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/log’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/dev/log’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/null’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/dev/null’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/zero’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/dev/zero’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/dev/urandom’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/dev/urandom’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/legato/systems/current/lib/liblegato.so’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/liblegato.so’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/ld-linux.so.3’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/ld-linux.so.3’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libc.so.6’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libc.so.6’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libpthread.so.0’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libpthread.so.0’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/librt.so.1’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/librt.so.1’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libdl.so.2’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libdl.so.2’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libgcc\_s.so.1’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libgcc\_s.so.1’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/lib/libm.so.6’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libm.so.6’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/usr/lib/libstdc++.so.6’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/lib/libstdc++.so.6’: Already exists  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/legato/systems/current/apps/mqttPublisher/read-only/lib/libComponent\_testPublisher.so’ to '/legato/systems/current/appsWriteable/mq  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2084 | Skipping file link ‘/legato/systems/current/apps/mqttPublisher/read-only/bin/testPublisher’ to '/legato/systems/current/appsWriteable/mqttPublisher/bin/  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateTmpFs() 1788 | Mounted tmpfs at /legato/systems/current/appsWriteable/mqttPublisher/tmp.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2154 | Created file link ‘/tmp/legato/serviceDirectoryServer’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/tmp/legato/serviceDirectoryServer’.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | app.c CreateFileLink() 2154 | Created file link ‘/tmp/legato/serviceDirectoryClient’ to ‘/legato/systems/current/appsWriteable/mqttPublisher/tmp/legato/serviceDirectoryClient’.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | resourceLimits.c GetCfgResourceLimit() 207 | Configured resource limit maxStackBytes is not available. Using the default value 0.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | proc.c proc\_Start() 1403 | Starting process ‘testPublisher’ with pid 14471  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1101]/supervisor T=main | supervisor.c SigChildHandler() 899 | Reaping unconfigured child process 14467.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[14471]/supervisor T=main | proc.c proc\_Start() 1363 | Execing ‘testPublisher’  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[14471]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxCoreDumpFileBytes to value 102400.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[14471]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxFileBytes to value 102400.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[14471]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxLockedMemoryBytes to value 8192.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[14471]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxFileDescriptors to value 256.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[14471]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxMQueueBytes to value 512.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[14471]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxThreads to value 20.  
Jan 6 08:20:01 swi-mdm9x28-wp user.info Legato: INFO | supervisor[14471]/supervisor T=main | resourceLimits.c SetRLimitValue() 301 | Setting resource limit maxQueuedSignals to value 100.  
Jan 6 08:20:14 swi-mdm9x28-wp user.info Legato: INFO | bluetoothServices[1802]/bluetoothServicesComponent T=main | battery\_service.c BatteryPercentPushHandler() 95 | BatteryPercentPushHandler called: 0.000000  
Jan 6 08:20:18 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[2097]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 799 | Sending QMI\_NAS\_GET\_SIG\_INFO\_REQ\_MSG\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=74.[0x4a]  
Jan 6 08:20:18 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[2097]/modemDaemon T=main | le\_mrc.c le\_mrc\_MeasureSignalMetrics() 4245 | Unable to measure the signal metrics!  
Jan 6 08:20:18 swi-mdm9x28-wp user.info Legato: INFO | modemDaemon[2097]/le\_pa T=main | pa\_mrc\_qmi.c pa\_mrc\_GetNetworkRegState() 2482 | called  
Jan 6 08:20:44 swi-mdm9x28-wp user.info Legato: INFO | bluetoothServices[1802]/bluetoothServicesComponent T=main | battery\_service.c BatteryPercentPushHandler() 95 | BatteryPercentPushHandler called: 0.000000  
Jan 6 08:20:48 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[2097]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 799 | Sending QMI\_NAS\_GET\_SIG\_INFO\_REQ\_MSG\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=74.[0x4a]  
Jan 6 08:20:48 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[2097]/modemDaemon T=main | le\_mrc.c le\_mrc\_MeasureSignalMetrics() 4245 | Unable to measure the signal metrics!  
Jan 6 08:20:48 swi-mdm9x28-wp user.info Legato: INFO | modemDaemon[2097]/le\_pa T=main | pa\_mrc\_qmi.c pa\_mrc\_GetNetworkRegState() 2482 | called

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 24, 2021, 5:01am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/11 "2021-11-24T05:01:42Z")

</div>

this does not make sense.  
Have you started with helloworld application (which should be ok with LE\_INFO()) and then port the code back to it?

---

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 5:18am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/12 "2021-11-24T05:18:26Z")

</div>

I ran the publisher and subscriber seperately, using mkapp command, and updated the update packages, unlike given in the steps that asked me to use mksys command to run sdef file. I did not have the sdef file first and the downloaded one gave me error while running that. Do you think that it’s the issue?

---

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 5:22am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/13 "2021-11-24T05:22:27Z")

</div>

And I can see INFO from hello world app.

Jan 6 14:50:02 swi-mdm9x28-wp user.info Legato: INFO | helloWorld[21761]/helloComponent T=main | helloWorld.c \_helloComponent\_COMPONENT\_INIT() 6 | Hello world!

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 24, 2021, 5:24am UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/14 "2021-11-24T05:24:41Z")

</div>

then you can step by step port the testPublisher to the helloworld and see if the LE\_INFO still works

> **[legato-af/apps/sample/mqtt/testPublisher at master · legatoproject/legato-af](https://github.com/legatoproject/legato-af/tree/master/apps/sample/mqtt/testPublisher)**
>
> master/apps/sample/mqtt/testPublisher

---

<div class="post-metadata">

**Author:** ![sagar.surendran](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar.surendran](https://forum.legato.io/u/sagar.surendran)\
**Post date:** [November 24, 2021, 3:34pm UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/15 "2021-11-24T15:34:00Z")

</div>

Hi, as I was just debugging, I saw that all the other apps except mqttClient is running in the mangoh.

I can see modemService, dataHub apps running. If I need to install mqttClient app, which one I should install?

In mqttPublisher.adef  
bindings:  
{  
testPublisher.testPublisher.mqtt → mqttClient.mqtt

```
testPublisher.testPublisher.le_info -> modemService.le_info
testPublisher.testPublisher.io -> dataHub.io
testPublisher.testPublisher.query -> dataHub.query
testPublisher.testPublisher.admin -> dataHub.admin

```

}

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 24, 2021, 3:50pm UTC](https://forum.legato.io/t/unable-to-see-data-in-mqtt/6030/16 "2021-11-24T15:50:37Z")

</div>

You can try this

> **[GitHub - mangOH/MqttClient](https://github.com/mangOH/MqttClient)**
>
> Contribute to mangOH/MqttClient development by creating an account on GitHub.
