Appearance
Value-Added Service API
Value-Added Service API Overview
Function | Description |
---|---|
Ql_iotCmdSysNTPReq() | Get time from NTP server |
Ql_iotDataCollSend() | Report data acquisition information |
API Description
Ql_iotCmdSysNTPReq
This function gets the time from the NTP server. You will be informed of the successful acquisition by URC event codes.
Prototype
c
qbool Ql_iotCmdSysNTPReq(void)
Parameter
None
Return Value
True
: Successful execution.False
: Failed execution.
NOTE
- This function is supported in SDK version 2.11.0 and above.
Example
c
qbool ret = Ql_iotCmdSysNTPReq();
Ql_iotDataCollSend
This function reports data acquisition information.
Prototype
c
qbool Ql_iotDataCollSend(qbool lastPack, quint32_t packNum, quint16_t dataLen, quint8_t *data);
Parameter
Input
<lastPack>
: Bool type. Whether the package is the last one.True
: The package is the last one.False
: The package is not the last one.
<packNum>
: Integer type. Range: 0–1048576.当前大数据分包发送的分包序号。<dataLen>
: Integer type. Size of the subpackage. Range: 1–1024.<data>
: Byte stream type. Data. The length is determined by the cache size allocated by the specific module model.
Return Value
True
: Successful execution.False
: Failed execution.
NOTE
- This function is supported in SDK version 2.18.0 and above.
Example
c
qbool ret = Ql_iotDataCollSend(TRUE,0,5,((quint8_t *)"hello"));