How to write at command in source code?
I have tried “system(at!entercnd=“A710”);” but it error.
you can see this document:
it have to use sms to setting??
Is it have any way else?
I have found le_atClient_SetCommandAndSend() in the site do you have a sample code?
SMS is just example for you…
For le_atClient_SetCommandAndSend(), you can see:
If I did write it to send sms. How can I know that the program is working??
I have try this one but it not work
root@swi-mdm9x28-wp:~# logread -f | grep atClientTest
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c app_Create() 3207 | Creating app 'atClientTest'
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c app_Start() 3420 | Starting app 'atClientTest'
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/dev/log' to '/legato/systems/current/appsWriteable/atClientTest/dev/log'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/dev/null' to '/legato/systems/current/appsWriteable/atClientTest/dev/null'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/dev/zero' to '/legato/systems/current/appsWriteable/atClientTest/dev/zero'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/legato/systems/current/lib/liblegato.so' to '/legato/systems/current/appsWriteable/atClientTest/lib/liblegato.so'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/lib/ld-linux.so.3' to '/legato/systems/current/appsWriteable/atClientTest/lib/ld-linux.so.3'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/lib/libc.so.6' to '/legato/systems/current/appsWriteable/atClientTest/lib/libc.so.6'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/lib/libpthread.so.0' to '/legato/systems/current/appsWriteable/atClientTest/lib/libpthread.so.0'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/lib/librt.so.1' to '/legato/systems/current/appsWriteable/atClientTest/lib/librt.so.1'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/lib/libdl.so.2' to '/legato/systems/current/appsWriteable/atClientTest/lib/libdl.so.2'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/lib/libgcc_s.so.1' to '/legato/systems/current/appsWriteable/atClientTest/lib/libgcc_s.so.1'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/lib/libm.so.6' to '/legato/systems/current/appsWriteable/atClientTest/lib/libm.so.6'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/usr/lib/libstdc++.so.6' to '/legato/systems/current/appsWriteable/atClientTest/lib/libstdc++.so.6'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/legato/systems/current/apps/atClientTest/read-only/lib/libComponent_atClientTestComp.so' to '/legato/systems/current/appsWriteable/at
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/legato/systems/current/apps/atClientTest/read-only/bin/atClientTest' to '/legato/systems/current/appsWriteable/atClientTest/bin/atCli
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/dev/ttyAT' to '/legato/systems/current/appsWriteable/atClientTest/dev/ttyAT'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateTmpFs() 1738 | Mounted tmpfs at /legato/systems/current/appsWriteable/atClientTest/tmp.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/tmp/legato/serviceDirectoryServer' to '/legato/systems/current/appsWriteable/atClientTest/tmp/legato/serviceDirectoryServer'.
Mar 24 16:08:51 swi-mdm9x28-wp user.info Legato: INFO | supervisor[832]/supervisor T=main | app.c CreateFileLink() 2104 | Created file link '/tmp/legato/serviceDirectoryClient' to '/legato/systems/current/appsWriteable/atClientTest/tmp/legato/serviceDirectoryClient'.
at
^C
it will return OK if it successfully sends the SMS:
at+cmgs=“1234567”
asdfasdf
+CMGS: 1
OK