Changing APN, Username and Password & le_data_Request

#1

Hello all,

how can I change the APN, Username and Password befor calling the le_data_Request function?

I am using the legato version18.06.03.

0 Likes

#2

Please see
https://docs.legato.io/latest/toolsTarget_cm.html

0 Likes

#3

Hi jyijyi,

I have to change the apn , password and username from my source code.
Is there any api function to do that, I would like to avoid to use the command “cm data apn”.

0 Likes

#4

Ypu can go and see the source code of cm tool

0 Likes

#5

Hi jyijyi,
I already saw the source code. The cm tool uses the le_mdc api (modem data control).
The le_data_Request uses the le_data api (dataConnectionService).

There is a warning:
Warning
Some Services shouldn’t be used together in the same app (e.g, if you use a multi-app safe service like Data Connection, you can’t also use the Modem Data Control Service).

0 Likes

#6

As you say you don’t want to use cm tool, then you can port the code to your application, then it will not be using the API together.

0 Likes