void _u1_putc(char c){
while(((U1S >> USTXC) & 0x7F) == 0x7F);
U1F = c;
}
void setup(){
Serial1.begin(115200);
ets_install_putc1((void *) &_u1_putc);
system_set_os_print(1);
}
Hi,
for remote debugging I sometimes use an "debug-ESP" and transfer everything what is coming from my "main-ESP" into the serial interface via UDP broadcast.
if (stringComplete) {
UDP.beginPacket("192.168.1.255", 514); // Broadcast on Port 514
UDP.write(inputString.c_str());
UDP.endPacket();
inputString = "";
stringComplete = false;
}
A terminal program (YAT) on the PC is receiving the debug messages.
Just thinking, why this can not be done from the "main-ESP" itself...
Do you think, I can gain any problems with this way? run out of numbers of connections/sockets?