Chat freely about anything...

User avatar
By lethe
#10604
MK1888 wrote:A missing "\r\n" after the "HTTP/1.1"?

Yes and another missing \r\n at the end (assuming the println function actually sends \r\n and not just \r or \n).
The GET request needs to end with 2 \r\n, otherwise the server won't do anything, as in your case.
User avatar
By Houser636
#10761 Now I get a bad request page.

How do I know what the AT+CIPSEND length should be?

Code: Select all+IPD,1452:HTTP/1.1 400 Bad Request
Date: Thu, 26 Fb2050:35 GT
evr Ach/..2(nx)OeSL10.efp o_wlmtd14mo_ci/..0de
Acp-age:bts
oneto:cos
CnetTp: ethm


!OTP tm ULC"/W3/DDXTL10 rniinl/E""tp/ww.3ogT/xtl/T/htl-rniinldt"
hm>  ha>  <ite40BdReus<tte
  <eaht-quv"otn-Tp"cnet"tx/tl hretuf8 >   syetp="etcs>     oy{     fn-ail:Vraa ril evtca assrf
       otsze 2x
       akrud-oo:378;
    srlba-aeclr #0B0
       cola-arwclr F96B
    scola-akSao-oo: 000;       clr FFF;
   mri:;
   
    a{clr#0f2;tx-eorto:oe
    h
       otsze 8x
    coo:#B82;       adigbto:10x
    bcgrudiae ulsscaeliae/otmbd.p)
       akrud-eet eet-;       adig5x010 1p;      agn:;    }
    bd-cnetp{     pdiglft 5x
       adn-igt 5x
       iehih: 8x
       adn-o:5p;       adigbto:5x;    }     2{     fn-ie:1p;       on-egt ol;       olr F90;
    pdiglet 5x
    }  <stl> <ha>
 b
K

+D,2:d>  <dvi=bd-cnet> <--satcnen->
!-
isea fRQET_R,w oldso boue R i: tp//TPHS/EQETUI  bu hti t hts/ rohr rtcl
 
  EVRPOTSCR oentse ob se
  EVR_OTlgcwul ra fthyueatrnt ot
-
<1>0 a euet/1
pYurbosrsntarqetta ti evrcul o nestn:/> <bokut>  (on)udt/ndxhm(ot 0
 /lcqut>
p
  Pes owr hi ro cee osaeip16234podpx.eueeve.e'    ahe=mitohsigxgoad.o?ujctErrmsag 40 0 adRqetfr nn)udt/idxhmpr 0 nWdedy,2-e-05233:4MT>
  eMse<a.
/><r/

<- n otet->  </i> <bd></tl

K


User avatar
By Houser636
#11003 Finally got this working. I just kept changing the CIPSEND length 1 at a time until it worked. This makes no sense to me but it works.

Code: Select all  mySerial.println("AT+CIPSEND=46");

      flag = 2;
    }

    if (ledState == HIGH && flag == 2)
    {
      Serial.println("Sending GET request...");
      ledState = LOW;
      mySerial.println("GET http://www.daqduino.com/update/index.htm");