Help:Contents

From IQsimWiki

Jump to: navigation, search

XIQS Set Device Area Code - GSM Device Management

Description
setXIQSDeviceAreaCode ( Long id_device , string areacode )
 Set area code of a GSM Device owned by this partition. No partition restriction is applied for administrator.
Parameters
Long id_device
 GSM Device ID
 String areacode
 The area code to set for this device 
Return Values
OK

Area code set

Error Data structure ( Error Management )

Possible failure code returns
*ERR_SRV_INTERNAL (500) ERR_MSG_NO_DB
See Also

getXIQSDeviceList
|}

Example

[REQUEST]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<command tid="12345" name="setXIQSDeviceAreaCode">
  <param type="long">2</param>
  <param type="string">51</param>
</command>

[ANSWER (OK)]
<?xml version="1.0" encoding="ISO-8859-1"?>
<event type="return" tid="12345">
  <meta-data>
    <meta-value>
    <name>ret_code</name>
    <pos>1</pos>
    </meta-value>
  </meta-data>
  <param type="long">1</param>
</event>

[ANSWER (Error)]
<?xml version="1.0" encoding="ISO-8859-1"?>
<event type="error">
  <meta-data>
    <meta-value>
      <name>err_code</name>
      <pos>1</pos>
    </meta-value>
    <meta-value>
      <name>err_desc</name>
      <pos>2</pos>
    </meta-value>
  </meta-data>
  <param type="integer">500</param>
  <param type="string"> err.db.connection.failed</param>
</event>

Personal tools
Namespaces
Variants
Views
Actions
Navigation
XIQS XML Protocol
XIQS Framework Libraries
XIQS Command List