Skip to content

UART (Conflicting declaration 'using SoftwareSerial) in esp8266 v3.1.2 #2136

@samuel-troina

Description

@samuel-troina

Environment

  • Scope: desktop IDE
  • Version: 0.38.0
  • OS: Windows 10
  • Machine: i7, 16 GB RAM

Steps to reproduce

In a new project, include only the "xod/uart/soft-uart" Patch and compile. This problem only occurs in version 3.1.2 of ESP8266, when performing the same procedure in previous versions the project is compiled normally.

Console output

In file included from C:\Users\samuel\AppData\Local\Temp\xod_temp_sketchbookXqsrq6\xod_1725538749360_sketch\xod_1725538749360_sketch.ino:1290:
C:\Users\samuel\xod_packages_\packages\esp8266\hardware\esp8266\3.1.2\libraries\SoftwareSerial\src/SoftwareSerial.h:432:7: error: conflicting declaration 'using SoftwareSerial = using UART = class EspSoftwareSerial::BasicUARTEspSoftwareSerial::GpioCapabilities'
432 | using SoftwareSerial = EspSoftwareSerial::UART;
| ^~~~~~~~~~~~~~

C:\Users\samuel\AppData\Local\Temp\xod_temp_sketchbookXqsrq6\xod_1725538749360_sketch\xod_1725538749360_sketch.ino:464:7: note: previous declaration as 'class SoftwareSerial'
464 | class SoftwareSerial;
| ^~~~~~~~~~~~~~

C:\Users\samuel\AppData\Local\Temp\xod_temp_sketchbookXqsrq6\xod_1725538749360_sketch\xod_1725538749360_sketch.ino:1296:20: error: field '_serial' has incomplete type 'SoftwareSerial'
1296 | SoftwareSerial _serial;
| ^~~~~~~

C:\Users\samuel\AppData\Local\Temp\xod_temp_sketchbookXqsrq6\xod_1725538749360_sketch\xod_1725538749360_sketch.ino:464:7: note: forward declaration of 'class SoftwareSerial'
464 | class SoftwareSerial;
| ^~~~~~~~~~~~~~

Error during build: exit status 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions