Web interface "spontaneously" stopped reading params from my VCU, so I had a bit of a look around and in Terminal::Run I stepped through the parsing and found leading "\n" in term->inBuf but I can't quite figure out how that got there.
I believe what needs to be in term->inBuf is "json\n\000...." but instead its "\njson\n\000...". I got no idea where that newline could come from all of a sudden

I stepped through "CmdLookup(inBuf)" and it looks for "" instead of "json", which doesn't match anything in termCmds[] obviously.
As a band-aid I added an EmptyCommand to terminal_prj.cpp that copies the inBuf one byte to the left and just calls CmdLookup again, that then gives a JSON response on UART, cool, but where are these newlines coming from? Presumably they are the terminating \n from previous call. Also my bandaid doesn't quite work because it then breaks the JSON parsing in the webinterface.
Is this a timing problem when booting up and then ESP & STM are out of sync forever by one newline?
Hope this makes some sense. (tried two different STMs and two different ESPs).