”;ÏfFLASHMAGIC=100 FLASH(STRSTR) sockRsp_s="true" #ÉÏ´«Êý¾ÝʹÓÃupSock #½ÓÊÕÊý¾ÝʹÓÃdownSock #±äÁ¿±£´æ´®¿Ú½ÓÊÕµ½Êý¾Ý uartStr="" uartHex="" upStr="" #ÉÏ´«Êý¾ÝÍ· upHead1="GET /bmcm.asmx/ReceiveXWJmsg?data=" upHead2=" HTTP/1.1\r\nHost: " upHead3="\r\n\r\n" RECV UART uart0 uartStr = INPUT uartHex = uartStr.hexString() upStr = upHead1 + uartHex + upHead2 + WANIP + upHead3 SEND(SOCK, upSock, upStr) RETURN(FALSE) END #±äÁ¿±£´æSOCK½ÓÊÕµ½Êý¾Ý sockStr="" sockStrTmp="" sockHex="" downStr="" #SOCK»Ø¸´Êý¾Ý sockRsp="HTTP/1.1 200 OK\r\nContent-Length: 4\r\nConnection: close\r\n\r\n" sockEnd=" HTTP/" RECV SOCK downSock strTmp="" sockStr = INPUT sockStrTmp=sockStrTmp+sockStr #SEND(UART, uart0, "\r\n111111111111111111\r\n") #SEND(UART, uart0, sockStrTmp) #SEND(UART, uart0, "\r\n222222222222222222\r\n") dataEnd=sockStrTmp.indexOf(sockEnd) IF (dataEnd == -1) RETURN(FALSE) END len=sockStrTmp.length(); first=sockStrTmp.indexOf("GET /1.php?data=") IF (first == -1) RETURN(FALSE) END first=first+5 sockStrHex=sockStrTmp.subString(first,len) end=sockStrHex.indexOf(" HTTP/") IF (end == -1) RETURN(FALSE) END end=end+first sockStrHex=sockStrTmp.subString(first,end) sockHex=sockStrHex.stringHex() downStr=sockHex SEND(UART, uart0, downStr) strTmp=sockRsp+sockRsp_s SEND(SOCK, downSock, strTmp) #strend=sockStrTmp.indexOf(sockEnd) dataEnd = dataEnd + sockEnd.length() IF (dataEnd == len) sockStrTmp = "" ELSE remainStr=sockStrTmp.subString(dataEnd,len) sockStrTmp = remainStr END #sockStrTmp.subString(strend,len) #SEND(UART, uart0, sockStrTmp) RETURN(FALSE) ENDÿÿÿÿÿÿÿÿÿÿ