Doubt about adl_atCmdSubscribe


#1

I am a beginner to open AT.

I just had this doubt like

adl_atCmdSubscribe ( GPS_CMD_GPSCFG, gps_CmdGPSCFGHandler, ADL_CMD_TYPE_TEST | ADL_CMD_TYPE_READ | ADL_CMD_TYPE_PARA | 0x21 );

In this code what does the last option “0x21” signify?

Also in ADL user guide in
s16 adl_atCmdSubscribe(…, u16 options)

I didn’t understand the note written abt options. Can anyone put light on this topic.

Regards,
Sameer


#2

Sameer,

The u16 options is 0x00ab:

a - max number of parameters

b - min number of parameters

So, at your exemple you can type one or two parameters. If you type 3 parameters you will get an ERROR message.

:wink:

Gus


#3

So for this command

AT+GPSCFG= ,

my max parameters are ‘2’ and
my min parameter is always 1.

What if i give less than 1 parameter

Also for AT+GPSCFG? is "?’ my 1 parameter or

this parameters are only useful for “ADL_CMD_TYPE_PARA” type.


#4

Sameer,

If you give less than 1 parameter like

AT+GPSCFG=

You will also get an ERROR message.

And yes, this configuration is olny for ADL_CMD_TYPE_PARA.

The “?” at AT+GPSCFG? is not a parameter.

Rgds,
Gus