d0ughb0y
Active member
I got my initial version of the esp8266 library done, and the result does not look good.
configured as a server, it receives client connection (I use curl) fine, but it is very slow to send back data to the client. I converted the Ethernet library webserver example to use my library, and it takes 11 seconds to send the html response back that is only 207 bytes long!
I timed the sends and it takes 220ms for each send to complete. each client.print() is one send, and each client.println() is 2 sends. If you look at the webserver example, the series of client.println ends up as 52 separate send commands to esp8266, hence 52*220 = about 11 seconds. not good.
I tried searching for code other people write, and pretty much all of them needs to add delay() to slow things down otherwise the program crashes.
I think the esp8266 is yet another novelty item and not ready for prime time.
I think espresiff published the sdk so people can write their own firmware. I might look into this to see if something can be done to speed up the sending.
sorscode, your suggestion to use raspberry pi keeps looking better everyday.
configured as a server, it receives client connection (I use curl) fine, but it is very slow to send back data to the client. I converted the Ethernet library webserver example to use my library, and it takes 11 seconds to send the html response back that is only 207 bytes long!
I timed the sends and it takes 220ms for each send to complete. each client.print() is one send, and each client.println() is 2 sends. If you look at the webserver example, the series of client.println ends up as 52 separate send commands to esp8266, hence 52*220 = about 11 seconds. not good.
I tried searching for code other people write, and pretty much all of them needs to add delay() to slow things down otherwise the program crashes.
I think the esp8266 is yet another novelty item and not ready for prime time.
I think espresiff published the sdk so people can write their own firmware. I might look into this to see if something can be done to speed up the sending.
sorscode, your suggestion to use raspberry pi keeps looking better everyday.