-->
Page 5 of 5

Re: 400 Bad Request on CIPSEND long string

PostPosted: Tue Oct 13, 2015 2:04 pm
by Asadujjaman
Thnx @Rafael, actually I need to see how you send your data through your code, thats why i asked for your code

Re: 400 Bad Request on CIPSEND long string

PostPosted: Sat Oct 17, 2015 1:45 am
by robofred
Hello there,

I'm a newbie to programming - and so far I've been able to use my Arduino Uno/ESP and do a GET request to my server and receive the content of a file and print it to Serial Monitor (exactly as you've done here).

I'm trying to create an app for my child where she can turn on/off LEDs on the arduino by updating the file on the server... so the file has 12 bits, where each bit represents an LED being on/off (I'm preceding it by four unique characters for filtering purposes, so the content of the file looks like this "HXWM101010101010")

I downloaded the code (here: https://github.com/Andy-Org/Andy/blob/m ... 266_Rx.ino) and it prints the content to Serial Monitor but I cannot figure out how to use the content, for example by assigning the bits to an array that would help me turn the LEDs on/off. Its as though everything after "+IPD..." cannot be read by my arduino code or used in any way.

I've been stuck on this for 2 weeks now. PLEASE HELP - and THANK YOU in advance.

Best,
/Fred

PS. Here's the file on my server: http://coopx.org/esp8266.txt

Re: 400 Bad Request on CIPSEND long string

PostPosted: Sat Oct 17, 2015 3:01 am
by Asadujjaman
I'm a newbie to programming - and so far I've been able to use my Arduino Uno/ESP and do a GET request to my server and receive the content of a file and print it to Serial Monitor (exactly as you've done here).


@robofred can you please tell me how you did this ? I am also trying to do this but every time i am getting this response "400 bad request".

Re: 400 Bad Request on CIPSEND long string

PostPosted: Sun Oct 18, 2015 11:07 am
by Rafael R