-->
Page 1 of 3

Simple HTTP client library (no String, no delay!)

PostPosted: Sun Jan 11, 2015 8:41 am
by McOffsky
Hi everyone!

I'am creating quite big system based on Arduino and I couldnt find good library for logging data to webserver without blocking rest of the program. So I've created simple, non-blocking lib for ESP8266, just for simple http requests. Tell me what do you think about it!

https://github.com/McOffsky/Arduino_ESP8266_HTTP_Client

Cheers,
I

Re: Http simple client library (no String, no delay!)

PostPosted: Tue Jan 13, 2015 4:26 pm
by gmc
Can't seem to compile it:

Arduino_ESP8266_HTTP/ESP8266.h:77: error: 'SoftwareSerial' does not name a type

Arduino 1.0.6 with the Uno.

Re: Http simple client library (no String, no delay!)

PostPosted: Thu Jan 15, 2015 5:47 am
by McOffsky
Arduino IDE compiler is not quite smart one, you need to include #include <SoftwareSerial.h> in your .ino file. Check your connections - in current setup Software Serial is used for connection with PC, so you will need FIDI serial adapter to connect with your PC. To change this just edit lines 72-81 in ESP8266.h file. I will change this setting in next library update, so ESP8266 will be on Software serial by default. Also update esp8266 lib files, I've done some important updates to keep memory footprint around 1kb max. I'm using Mega board, but I will do more tests on Arduino Uno on weekend.

Re: Simple HTTP client library (no String, no delay!)

PostPosted: Sun Jan 25, 2015 8:57 am
by McOffsky
Ok guys, lib got much needed TX buffer, better connection handling and a lot of stability improvment. Also I've tested it on Arduino Uno, but it looks like Software Serial is not trustworthy, not enough to build my devices around it.

https://github.com/McOffsky/Arduino_ESP8266_HTTP_Client