* This is an example, this function needs to be implemented in order to parse the json file into a sql statement
* Note that you need to create a super table and database before writing data
* In this case:
* create database mqttdb;
* create table mqttdb.devices(ts timestamp, value bigint) tags(name binary(32), model binary(32), serial binary(16), param binary(16), unit binary(16));
*/
char*mqttConverJsonToSql(char*json,intmaxSize){
// const int32_t maxSize = 10240;
maxSize*=5;
char*sql=malloc(maxSize);
cJSON*root=cJSON_Parse(json);
if(root==NULL){
mqttError("failed to parse msg, invalid json format");