mirror of
https://github.com/thelsing/knx.git
synced 2026-02-23 13:50:35 +01:00
Support configure UART speed for ESP IDF
This commit is contained in:
@@ -123,8 +123,9 @@ extern "C" void app_main(void) {
|
||||
|
||||
ESP_LOGI(TAG, "WiFi initialization finished.");
|
||||
|
||||
// Set UART pins (example: RX=16, TX=17)
|
||||
knxPlatform.knxUartPins(16, 17);
|
||||
// Configure UART settings
|
||||
knxPlatform.knxUartPins(16, 17); // Set RX=16, TX=17
|
||||
knxPlatform.knxUartBaudRate(19200); // Set baud rate (can be changed to other values like 9600, 38400, etc.)
|
||||
knxPlatform.setupUart();
|
||||
|
||||
// Set button ISR
|
||||
|
||||
Reference in New Issue
Block a user