-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consumption time of an API (600ms) #207
Comments
I answered you yesterday. Did you delete and repost it again without any change? |
Hi, sorry, I didn't delete the previous one, keep it up, I just opened a new one because I thought it would be better.
|
what bad rate do you use to communicate with the AT firmware? |
|
you could try my WiFiEspAT library. maybe it is faster. sure is, it can run at higher baud rate on hardware Serial https://github.com/jandrassy/WiFiEspAT#Why-a-new-wifiesp-library |
SDK 1.5 is ancient. |
my library requires at least AT 1.7 (from SDK 3) |
the board's setup should be right if it worked with previous library. EDIT: does the AT firmware respond to commands from Serial Monitor when you connect the esp8266 directly over USB? |
The closest I got to running the AT commands was by following this tutorial "https://www.instructables.com/Program-Any-ESP8266-Boardmodule-With-AT-Commands-F" and leaving the configuration almost the same: Connecting to ESP 74880 I receive these messages: After changing to 115200 I get a Ready, sending the AT command I get ERROR *** The problem seems to be with the version of this ESP, something is not hitting, this board is an ESP8266EX |
see https://github.com/jandrassy/WiFiEspAT#at-17-1 and to send AT commands from Serial Monitor set the line ending setting to Both |
again. AT 1.7 is with SDK 3. AT 2.1 is with RTOS SDK IDF framework |
Is it for me to test with Firmware 1.7? I already tested with 1.7 and 1.7.4, it does not work the AT command, the only one that seems to work is this one, 2.2.1 I didn't understand what I have to test now, could you give more details? |
I commented client.stop() and stopped disconnecting after 5 times, I don't know if it's right, but it worked. |
you flashed the 1 MB version? the esp8266 on Mega+WiFi has a 4 MB flash memory, but the firmware only needs two so Espressif builds the published version for 2 MB flash and a stripped down version for 1 MB flash |
yes 1, the second is for 1 MB esp-01 modules. |
How can I be sure that mine is not ESP-01? It has these markings: |
4 MB clues: 1) Robotdyn Mega+WiFi board spec 2) Flash Download Tool detection |
Okay, last question, is there a significant difference whether or not to use client.stop()? Without it working well, can I keep it that way? Thank you very much for all the support. |
the AT firmware is limited to 5 concurrent 'links' (TCP clients and UDP listeners). it is harder to manage if some connections are left open. and is it faster? |
Just for you to understand, my solution has 16 connected buttons and are pressed by users at random. When a button is pressed, I consume a web service to record the moment that was pressed, the registration is done in a database. As it can happen that more than one user presses the same time, the sending must be as fast as possible. Anyway, without using client.stop() and with "Connection: keep-alive" it fine, somewhere around 80ms, and it doesn't stop after 5 uploads. |
I'm sending data to an API, in consumption via GET the average time is 500ms (so in the example below I'm sending data via GET), via POST for almost 1s.
Could you reduce this time? In a test by POSTMAN for example the API responds in a maximum of 38ms.
The text was updated successfully, but these errors were encountered: