Closed atesin closed 4 years ago
The WiFiEspAT library uses a buffer so the prints are collected and sent as 32 or 64 bytes pieces. You can configure the buffer size.
I have a separate StreamLib library as solution for things you mention. My main Arduino project Regulator is the largest example of StreamLib with web server and client.
hi... thanks for your kindly response ... but how about the 3 questions?
i am not so skilled... i am cracking my head trying to find some custom "AT+CIPSEND:,
another additional question... is there some WiFiClient.printRaw() or WiFiClient.find() function? .. i think with this you can send data directly from progmem to uart no needing an intermediate buffer
I answered the questions with links, but OK, I go a little more in detail, but you must read the docs and study the code
WFiClient is derived from Arduino common Stream class so you can use all functions you know from Serial, including printing a F() macro string. ('printRaw' is write()) With StreamLib classes you have additionally printf, which can use format string from PROGMEM too
the HTTP chunked encoding with ChunkedPrint class solves the unknown-http-body-length problem as you can read in StreamLib's README.md
my code as examples:
the linked codes work with all Arduino networking libraries because the Clients are the same, so this is not about WiFiEspAT
hi... thanks for your library, seems very cool .. i am trying to learn how to use, is a little hard to me since i am not a programmer but a sysadmin
i have an iot project (a cheap automated irrigation system for poor farmers) with arduino, this library, esp8266 (esp-01s) and the LoBo firmware (because the official firmware didn't let me save configs), and my nginx/php/mariadb webserver
i am developing a small embedded http server, mostly for inputting wifi credentials through a local webpage to connect the module and the server through internet... for example i know with this library i can do something like this...
... but i know with this will have several AT+CIPSEND commands, slowing down the overall responsiveness and resources.... so instead we can do it with 1 single cipsend command like this...
... but with this way you must build the char string response before send it, which could consume a lot of ram.... i thought an alternative aproach that i don't know how to implement with this library...
... or maybe a multi parameter function/macro like "client.write( str1, str2, str3 ...) (with vararg, variadic, sentinel, array of pointers, idk)
.... now the questions...
thanks for your fantastic library, for your patience reading, and in advance for your possible response... i am hungry waiting your response :D