Unable to see data in mqtt

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’.

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 ?

did you run the Mosquitto MQTT server on the Linux workstation

Yes, mosquitto MQTT is running on my linux system

I am able to publish messages via MQTT Explorer app and get the data using mosquitto_sub

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?

mosquitto_sub -t 355882100106097/messages/json
sagar
sagar
sagar

you can add some debug message in COMPONENT_INIT() function and see if you can see the message in LE_INFO().

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");

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

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?

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?

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!

then you can step by step port the testPublisher to the helloworld and see if the LE_INFO still works

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

}

You can try this