
¹Ø¼ü´Ê£ºUSR-G780 HTTPD_Client POST
1¡¢HTTPD_ClientÖ÷ÒªÓ¦ÓÃÓÚÍøÒ³·þÎñÆ÷£¬USR-G780Ä£¿é·¢Ë͵ÄÊý¾Ý£¬¿ÉÒÔ͸´«µ½ÍøÒ³·þÎñÆ÷½ÓÊÕ¡£ÍøÒ³·þÎñÆ÷·µ»ØÊý¾Ý¸øUSR-G780Ä£¿éµÄ´®¿Ú¡£ÓÃÓÚ¼à¿Ø´®¿ÚÉ豸¡£
ʵÏÖ¹¦ÄÜ£ºÊµÏÖ´®¿ÚÉ豸·¢ËÍÊý¾Ý£¬Í¨¹ýUSR-G780Ä£¿é£¬¿ÉÒÔÖ±½Ó·¢Ë͵½ÍøÒ³·þÎñÆ÷ÉÏ£¬ÍøÒ³·þÎñÆ÷¿ÉÒÔ½ÓÊÕÊý¾Ý£¬¶ÔÊý¾Ý½øÐÐÅжϴ洢µÈ²Ù×÷£¬web·þÎñÆ÷¸ù¾Ý´®¿ÚÉ豸ÇëÇóÊý¾Ý£¬·´À¡ÏàÓ¦µÄ¿ØÖÆÖ¸Áî¡£
½â¾öÎÊÌ⣺USR-G780Ä£¿éÒ»°ã͸Ã÷´«ÊäÊý¾ÝÊÇͨ¹ýTCP »òÕßUDP ÐÒ飬ÒÔsocketͨѶµÄ·½Ê½Óë·þÎñÆ÷½¨Á¢Á´½Ó£¬Ä¿Ç°ÓÐÐí¶à¿ØÖƺ͹ÜÀíÉ豸µÄ·½Ê½²»ÊÇͨ¹ýSOCKETͨѶ£¬ÊÇͨ¹ýwebÍøÒ³¹ÜÀíºÍ¿ØÖÆ´®¿ÚÉ豸£¬Ö»ÐèÒªÓû§¿ÉÒÔÉÏÍø£¬Í¨¹ýä¯ÀÀÆ÷¼´¿É¿ØÖƺͲéѯ´®¿ÚÉ豸µÄÊý¾Ý״̬µÈÐÅÏ¢¡£
2¡¢ATÖ¸ÁîÉèÖò½Öè([0D][0A]Ö»ÊÇÐÎʽ±íʾ·½Ê½£¬´ú±í»Ø³µ»»ÐÐ)
ÐèÒªÏȽ«´®¿Ú½øÈëµ½ÁÙʱָÁîģʽ¡£
a.ÉèÖù¤×÷ģʽΪHTTPD£º
AT+WKMOD=HTTPD[0D][0A]
b.ÉèÖÃHTTPµÄÇëÇó·½Ê½£º
AT+HTPTP=POST[0D][0A]
c.ÉèÖÃHTTPµÄURL:
AT+HTPURL=/2.php[0D][0A]
d.ÉèÖÃHTTPµÄÇëÇó·þÎñÆ÷µØÖ·ºÍ¶Ë¿ÚºÅ£º
AT+HTPSV=test.usr.cn,80[0D][0A]
e.ÉèÖÃHTTPµÄÇëÇóÍ·ÐÅÏ¢£º
AT+HTPHD=Connection: close[0D][0A][0D][0A]
f.ÉèÖÃHTTPµÄÇëÇó³¬Ê±Ê±¼ä£º
AT+HTPTO=10[0D][0A]
g.ÉèÖùýÂ˻ظ´ÐÅÏ¢µÄ°üÍ·£º
AT+HTPFLT=ON[0D][0A]
h.ÖØÆôÉ豸£º
AT+Z[0D][0A]
ʹÓÃÅäÖÃÈí¼þ¹¤¾ßÉèÖãº
3¡¢Ê¹Óô®¿Úµ÷ÊÔÖúÊÖ·¢ËÍÌá½»Êý¾Ý,²âÊÔ·þÎñÆ÷Ϊ·¢ËÍʲôÊý¾Ý£¬·µ»ØʲôÊý¾Ý¡£
ÀýÈç·¢ËÍDATA=123
·µ»ØDATA=123