double time output
Hi,
can you please change the double time issue? Left is sufficient. The time does not have to be repeated at the end of each line. Can you please correct this? That would be very nice.
Could you show me your code?
I think this is due to the newline character '\n' being sent separately to the frontend web page.
Hi, yes, I send \n as end of line. This is exactly how it should be. The time may only be displayed with a new line on the left. Why does it react to \n with repeated time output? If I do not send \n there must be no line break.
This is the serial print class from Arduino. I use DEBUG_P. This is ...println() with \n.
#define WEBDEBUG // Income commenting for the web page output
//#define SERIALDEBUG // Commenting income for the serial output
#if defined(SERIALDEBUG) && !defined(WEBDEBUG)
#define DEBUG_B(...) Serial.begin(__VA_ARGS__)
#define DEBUG_T(...) Serial.print(__VA_ARGS__)
#define DEBUG_P(...) Serial.println(__VA_ARGS__)
#define DEBUG_F(...) Serial.printf(__VA_ARGS__)
#endif
#if defined(WEBDEBUG) && !defined(SERIALDEBUG)
#define DEBUG_B(...)
#define DEBUG_T(...) WebSerial.print(__VA_ARGS__)
#define DEBUG_P(...) WebSerial.println(__VA_ARGS__)
#define DEBUG_F(...) WebSerial.printf(__VA_ARGS__)
#endif
#if (!defined(SERIALDEBUG) && !defined(WEBDEBUG)) || (defined(SERIALDEBUG) && defined(WEBDEBUG))
#define DEBUG_B(...)
#define DEBUG_T(...)
#define DEBUG_P(...)
#define DEBUG_F(...)
#endif