[Starter Kit] SMS Messaging

Hi !

I tried to include the example code explained in the following link, in the example project already present in the board :
https://docs.legato.io/latest/c_smsSampleMO.html

But during compilation, the functions of this API are not recognized.
For example “le_sms_Create” or “le_sms_SetDestination”.

Is it necessary to install or include a particular library for it to work ?

Thank you in advance for your help ! :wink:

Capture d’écran 2018-11-28 à 17.00.59

Those messages indicate that you have not #included the required header (.h) file …

1 Like

Hi @alexB,
Make sure you have the following points:

  1. adef file
    bindings:
    {
    OrangeStarterKit.OrangeStarterKitComponent.le_sms -> modemService.le_sms
    }

  2. cdef file
    requires:
    {
    api:
    {
    modemServices/le_sms.api

Nhon

1 Like

Hi

I use sms in my project
You can find it here
This is a fork from the Orange Starter Kit especially in the file OrangeStarterKitComponent.c

Regards

1 Like

Hi !
Thank you for your quick answer. @awneil , @NhonChu
It seemed to me that the problem came from a library, but I couldn’t find the right one.

I can work on it now.

Thank you @pierr0t this will make me a second working base.

Have a nice day.
Alex.