宇视科技通过stm32叠加字符串


void sendtoYskj(uint8_t *cameraIp,uint16_t cameraSrcPort,uint16_t cameraDstPort,uint8_t *userName,uint8_t *pwd,uint8_t lineNum,int camNo)//宇视科技
{
    int flag = 1;
    int sock = -1,connected;
    int send_data_len;
    int recv_data_len;
    //char str1[10024]="\0";
    //char str2[10024]="\0"; 
    //char str3[10024]="\0"; 
    //char buf[10*1024]="\0"; 
    //char recvbuf[10*1024]="\0"; 
//    memset(str1, 0, sizeof(str1));
//    memset(str2, 0, sizeof(str2));
//    memset(str3, 0, sizeof(str3));
//    memset(buf, 0, sizeof(buf));
//    memset(recvbuf, 0, sizeof(recvbuf));
    // strcat(str2, buf1);
    int len;
    uint8_t ret;//={0xff,0x11,0x01,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x00,0x11,0xff,0x11,0x02,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30

你可能感兴趣的:(科技,stm32,单片机)