Chapter 13 Device Logic (Pawn)
native rM2M_EnumPosUpdate(...);
lists the information saved in the device about the GSM/UMTS/LTE cells and WiFi networks in the
receiving range. With this function a variable list of parameters is used. The parameters to be passed
depend on the purpose. The following procedure is recommended:
1. Reading of the number of available cell/network information entries
new nEnum;
rM2M_EnumPosUpdate(nEnum);
2. Determination of the particular type of the cell/network information entries
new type;
new idxEnum = 0;
for(idxEnum=0 ; idxEnum < nEnum ; +)
rM2M_EnumPosUpdate(idxEnum, type);
3. Reading of cell/network information entries based on the types determined previously (in the
following example only those that contain information about a GSM cell).
new sGSMPos[TrM2M_PosUpdateGSM];
if(type == RM2M_POSUPDATE_TYPE_GSM)
rM2M_EnumPosUpdate(idxEnum, sGSMPos, sizeof sGSMPos);
Parameter
Explanation
nEnum
Variable to store the number of available cell/network information entries
idxEnum
Index of the cell/network information entry whose type should be determined or
that should be read by the system.
Either the "type" parameter or the two "buf" and "len" parameters are required in
addition depending on the desired action.
type
Variable to store the type of a cell/network information entry (see "RM2M_
POSUPDATE_TYPE_xxx" in Chapter "Constants" on page 162)
buf
Buffer to store a cell/network information entry
The structure of the buffer depends on the cell/network information entry to be
read (see "TrM2M_PosUpdatexxx" in Chapter "Arrays with symbolic indices" on
page 160)
len
Size (in cells) of the structure to store a cell/network information entry
Explanation
Return value
l
OK, if successful
l
ERROR, if an error occurs
Rev. 05
167
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......