Hi,
I can execute AT+UART_DEF=19200,8,1,0,3 in at mode.
However, I failed to set baud rate in user_init() by following line
at_setupCmdUartDef(0,"=19200,8,1,0,0");
It just response ERROR
Does any one know how to setup default baud rate in user_init()?
Note: I'm using esp_iot_sdk_v1.1.0_15_05_22
thanks
How to use at_setupCmdUartDef
Re: How to use at_setupCmdUartDef
Postby rudi » Sun May 31, 2015 5:00 am
jerry wrote:
...
at_setupCmdUartDef(0,"=19200,8,1,0,0");
...
i am not sure, but have a try,
perhabs you can try this in c
Code: Select all
at_setupCmdUartDef(0,"\"=19200,8,1,0,0\"");
btw, which doku you have read about api at_setupCmdUARTDef then parameter stands in this how it must be call.
or perhabs this ..
Code: Select all
at_setupCmdUartDef("0,=19200,8,1,0,0");
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: How to use at_setupCmdUartDef
Postby BarryP » Sun May 31, 2015 6:25 am
Hi,
This works for me
Barry
This works for me
Code: Select all
uart_div_modify(0, UART_CLK_FREQ / 115200);
// or in your case
uart_div_modify(0, UART_CLK_FREQ / 19200);
Barry
Who is online
Users browsing this forum: No registered users and 125 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.