ESP8266 Developer Zone The Official ESP8266 Forum 2015-05-12T07:03:23+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=438 2015-05-12T07:03:23+08:00 2015-05-12T07:03:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=438&p=1678#p1678 <![CDATA[[solved]UART.h // custom Bautrate in newest SDK]]> sorry,
have found the uart.h in examples in IoT_Demo Folder
-> include/driver
all ok.
my mistake,i have wounder me, why the uart.h ist not in AT demo ;-)))
..
best wishes
rudi ;-)
its time for holiday ;-) ;-) ;-)



hi
for longer time i do not need uart code's but now, i need this again with newer sdk, and i have seen, that uart.h is not longer availabel / hidden ..

is there a possible choice for API or a other point to add a custom baudrate, because AT is still not longer open source and uart.h is gone :)... hidden .. :)

example earlier sdk version was this possible like this way:

add a custom baudrate in uart.h

Code:

typedef enum {
BIT_RATE_9600   = 9600,
..
..
..
// example Custom
BIT_RATE_80000  = 80000,  // Only example !! no really functionally bautrate..
..
..
..
..
BIT_RATE_921600 = 921600

}  UartBautRate;



then in user init

Code:


// This changed the Bautrate to custom
uart_init(BIT_RATE_80000, BIT_RATE_115200);




how we can do this now in actually sdk?
thank you!

best wishes
rudi ;-)


// edit

In AT Command Construction there is a AT Command possible:

AT+UART_DEF=80000,8,1,0,0

how i can do this in api or user code from scratch.
thank you!

Statistics: Posted by rudi — Tue May 12, 2015 7:03 am


]]>