# Doubt about adl\_atCmdSubscribe

**URL:** <https://forum.sierrawireless.com/t/doubt-about-adl-atcmdsubscribe/722>\
**Category:** Open AT\
**Created:** [September 27, 2006, 12:51pm UTC](https://forum.sierrawireless.com/t/doubt-about-adl-atcmdsubscribe/722 "2006-09-27T12:51:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameer](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sameer](https://forum.sierrawireless.com/u/sameer)\
**Post date:** [September 27, 2006, 12:51pm UTC](https://forum.sierrawireless.com/t/doubt-about-adl-atcmdsubscribe/722/1 "2006-09-27T12:51:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gmnvh](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gmnvh](https://forum.sierrawireless.com/u/gmnvh)\
**Post date:** [September 27, 2006, 3:09pm UTC](https://forum.sierrawireless.com/t/doubt-about-adl-atcmdsubscribe/722/2 "2006-09-27T15:09:52Z")

</div>

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.

😉

Gus

---

<div class="post-metadata">

**Author:** ![sameer](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sameer](https://forum.sierrawireless.com/u/sameer)\
**Post date:** [September 28, 2006, 6:39am UTC](https://forum.sierrawireless.com/t/doubt-about-adl-atcmdsubscribe/722/3 "2006-09-28T06:39:12Z")

</div>

> [@gmnvh](#):
>
> 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.

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.

---

<div class="post-metadata">

**Author:** ![gmnvh](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gmnvh](https://forum.sierrawireless.com/u/gmnvh)\
**Post date:** [October 3, 2006, 4:25pm UTC](https://forum.sierrawireless.com/t/doubt-about-adl-atcmdsubscribe/722/4 "2006-10-03T16:25:57Z")

</div>

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
