Skip to content
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

Problem changing baud rate using ESP8266 as modem when using AT commands #760

Open
ZamperSPA opened this issue Nov 21, 2023 · 0 comments
Open

Comments

@ZamperSPA
Copy link

ZamperSPA commented Nov 21, 2023

[ x ] Bug or issue with library functionality (ie, sending data over TCP/IP)

What are you working with?

Modem: ESP8266 , ESP-01S
Main processor board: Atmega1284P
TinyGSM version: 0.11.5 , but the new version also has the bug

Code:

void setBaudImpl(uint32_t baud) {
    sendAT(GF("+UART_CUR="), baud, ",8,1,0,0");//<---add the comma before the 8 to fix
    if (waitResponse() != 1) {
      sendAT(GF("+UART="), baud,",8,1,0,0");  // Really old firmwares might need this //<---add the comma before the 8 to fix
      // if (waitResponse() != 1) {
      //   sendAT(GF("+IPR="), baud);  // First release firmwares might need
      //   this
      waitResponse();
      // }
    }
  }

Scenario, steps to reproduce

use setBaud() function

Expected result

change the baudrate of communication

Actual result

ERROR is displayed on the serial monitor

Debug and AT command log

I did not save the logs, I simply added the comma and the issue was fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant