12.3.3.3 Functions
native rM2M_LiveData(const data{}, len);
Transmits a data record as live data to the server. Calling this function is only permissible if the device is
in "online" mode and an active connection to the server is established. Use the "rM2M_Pack", "rM2M_
SetPacked" or "rM2M_SetPackedB" functions to generate the data area.
Parameter
data
len
Return value
native rM2M_RecData(timestamp, const data{}, len);
Saves a data record in the internal flash memory. Use the "rM2M_Pack", "rM2M_SetPacked" or
"rM2M_SetPackedB" functions to generate the data area.
Parameter
timestamp
data
len
Return value
Rev. 01
Array that contains the live data to be transferred
Important note: The structure of the live data must be identical to that of
the measurement data saved in the internal flash using the "rM2M_
RecData()" function.
Number of bytes to be transferred (max. 1024 Byte )
OK, if successful
l
ERROR, if an error occurs (e.g. the server does not support receipt of live
l
data.)
Time stamp that should be used for the recording
= 0: The current system time is used as the time stamp.
> 0: The transferred time stamp is used.
(The time stamp must be specified in seconds since 31.12.1999)
Array that contains the data to be saved
Number of bytes to be saved (max. 1024 Byte )
OK, if successful
l
-2, if data storage is not currently possible as the internal memory is being
l
reorganised. The data must be temporarily saved in the script and stored
again at a later date.
ERROR, if one of the following errors occurs
l
Memory area (data{}, len) is invalid.
l
More than 10 calls during one script run
l
Number of bytes to be saved > 1024 Byte
l
FLASH write process not successful
l
The time stamp transfer parameter is more than 5 minutes in the
l
future
< OK, if another error occurs (see "Return codes for general purposes" in
l
chapter "Constants" on page 84).
Chapter 12 Device Logic (Pawn)
Explanation
Explanation
Explanation
Explanation
91
Need help?
Do you have a question about the myDatalogEASY IoTmini and is the answer not in the manual?