Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

global WiFiClass is required by wifi system but is not defined with NO_GLOBAL_INSTANCES #11871

Open
Labels
@apalazzi

Description

Board

Fysetc E4

Device Description

3D printer board

Hardware Configuration

nothing relevant for the issue

Version

latest stable Release (if not listed below)

Type

Task

IDE Name

esp.py

Operating System

Linux

Flash frequency

40

PSRAM enabled

yes

Upload speed

115200

Description

When setting #define NO_GLOBAL_INSTANCES the WiFiClass Wifi is not declared in libraries/WiFi/src/WiFi.h, however other classes such APClass in libraries/WiFi/src/AP.cpp depends on it to work properly. For some reason the code still compiles but when trying to connect in STA mode the connection doesn't work.

A preferable outcome would be to make the build fail entirely, or document somewhere the NO_GLOBAL_INSTANCES and its pitfalls.

Sketch

-

Debug Message

-

Other Steps to Reproduce

  1. #define NO_GLOBAL_INSTANCES in your code
  2. try to use the wifi stack

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /