Skip to content

API Overview

Product Configuration API

FunctionDescription
Qth.setProductInfo()Sets the product information.
Qth.setServer()Sets the server URL.
Qth.setLifetime()Sets the keep alive interval of the MQTT connection.
Qth.setEventCb()Sets the event callback function.
Qth.setMcuVer()Sets the MUC version information.
Qth.setAppVer()Sets the App (QuecPython script) version Information.

Note: SeeProduct Configuration API for details.

Network Configuration API

FunctionDescription
Qth.setApn()Configures APN information.

Note: SeeNetwork Configuration API for details.

Device Connection API

FunctionDescription
Qth.init()Initializes QuecThing.
Qth.start()Connects the device to Developer Center.
Qth.stop()Disconnects the device from Developer Center.
Qth.state()Gets the connection status between the device and Developer Center.
Qth.reset()Resets the device.

Note: SeeDevice Connection API for details.

Data Interaction API

FunctionDescription
Qth.sendTrans()Sends transparent transmission data to Developer Center.
Qth.sendTsl()Sends TSL data to Developer Center.
Qth.ackTsl()Replies to TSL data request from Developer Center.
Qth.ackTslServer()Replies to TSL service request from Developer Center.

Note: SeeData Interaction API for details.

OTA Upgrade API

FunctionDescription
Qth.otaRequest()Requests OTA upgrade plans.
Qth.otaAction()Confirms OTA upgrade plans.

Note: SeeOTA Upgrade API for details.