fredlcore / BSB-LAN

LAN/WiFi interface for Boiler-System-Bus (BSB) and Local Process Bus (LPB) and Punkt-zu-Punkt Schnittstelle (PPS) with a Siemens® controller used by Elco®, Brötje® and similar heating systems
216 stars 83 forks source link

Wait USB Serial connection to establish before sending debug #637

Closed jbaudoux closed 3 months ago

jbaudoux commented 3 months ago

On my device, on power on, the esp starts faster than the usb-ttl chip. It's start outputting useful init debug info while the serial connection is not ready yet. It needs between 500ms and 1sec to initialize. I added a delay in the setup before sending the first message. As this is only at power on, I don't think such delay has any drawback.

fredlcore commented 3 months ago

It does not apply to any of our supported boards. You can add the required commands to BSB_LAN_global.h or BSB_LAN_custom_setup.h instead.