Chat freely about anything...

User avatar
By Atlantis
#33764 I am working on my own project, using ESP8266 as main microcontroller. I would like to be able to configure my device using commands, send by UART0 interface. I don't want use standard AT library, cause it looks like at_init() initializes entire AT "framework", alongside with complete set of default commands. I only want to be able to add custom set of commands, nothing else. And I am not quite sure, if I decide to use "AT+" format.

If there is an easy way to do this? I have some experience with parsing character strings, under AVR based projects. So hypothetically I could port my code to work under ESP. But I can't find anything specific in the documentation.
Can anyone tell me, how to:
1) Intercept entire line sent through UART0? By entire line I mean set of characters, ended with '\n' or '\r\n'. Is there already proper function available, or should I wrote it myself? In that case:
2) How to intercept every single character incoming through UART0?

Or maybe it was already implemented into SDK and I only have to register some function to pare every incoming line?