void WIFI_CONTECT()
{
printf("AT+CIPSNTPCFG=1,8,\"ntp1.aliyun.com\"\r\n");
delay_ms(800);
printf("AT+MQTTUSERCFG=0,1,\"NULL\",\"smart_hlment&h21qEQyRDcS\",\"D89A52AE8F651ABC70D37B7A03AD58DE98DE8C24\",0,0,\"\"\r\n");
delay_ms(800);
printf("AT+MQTTCLIENTID=0,\"112233|securemode=3\\,signmethod=hmacsha1\\,timestamp=456|\"\r\n");
delay_ms(800);
printf("AT+MQTTCONN=0,\"h21qEQyRDcS.iot-as-mqtt.cn-shanghai.aliyuncs.com\",1883,1\r\n");
delay_ms(800);
printf("AT+MQTTSUB=0,\"/sys/h21qEQyRDcS/${smart_hlment}/thing/service/property/set\",1\r\n");
delay_ms(800);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_8,GPIO_PIN_SET);
delay_ms(500);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_8,GPIO_PIN_RESET);
}
printf("AT+MQTTPUB=0,\"/sys/h21qEQyRDcS/smart_hlment/thing/event/property/post\",\"{\\\"method\\\":\\\"thing.service.property.set\\\"\\,\\\"id\\\":\\\"1234567891\\\"\\,\\\"params\\\":{\\\"qxzt\\\":%d}\\,\\\"version\\\":\\\"1.0.0\\\"}\",1,0\r\n",shigubiaozhiwei);