Skip to content

WiFiClient and related macros - troubles when using forward declarations #9891

Closed
@cziter15

Description

@cziter15

Version

v3.0.1

Description

The classes related to networking, such as WiFiClient and WiFiServer, have been renamed to NetworkClient, NetworkServer, and similar names. To preserve backward compatibility, macros (defines) have been introduced, but they are embedded within the class headers.

This modification can create issues if you have utilized forward declarations in your headers. As a result, users are now compelled to include the full implementation in every instance.

A better approach would be to use inheritance rather than relying on defines.

class WiFiClient : public NetworkClient {};
  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

3.0 migrationissue relates to migration from 2.X to 3.X versionArea: LibrariesIssue is related to Library support.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions