Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any documentation for NetworkManager and NetworkEvents? #10478

Open
1 task done
hitecSmartHome opened this issue Oct 17, 2024 · 4 comments
Open
1 task done

Any documentation for NetworkManager and NetworkEvents? #10478

hitecSmartHome opened this issue Oct 17, 2024 · 4 comments
Labels
Status: Awaiting triage Issue is waiting for triage Type: Documentation Issue pertains to Documentation of Arduino ESP32

Comments

@hitecSmartHome
Copy link

Board

ESP32

Device Description

ETH_LAN8720

Hardware Configuration

ETH_LAN8720

Version

latest master (checkout manually)

IDE Name

Pioarduino

Operating System

Windows 10 / 11

Flash frequency

80

PSRAM enabled

yes

Upload speed

115200

Description

I wonder if there is any example or documentation for these new classes

Sketch

#include <Network.h>
#include <NetworkManager.h>

NetworkEvents networkEvents;

void test(){
    networkEvents.onEvent([](arduino_event_id_t event, arduino_event_info_t info) {
        // profit?
    },ARDUINO_EVENT_MAX);
    Network.begin();
}

Debug Message

no debug log

Other Steps to Reproduce

No response

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@hitecSmartHome hitecSmartHome added the Status: Awaiting triage Issue is waiting for triage label Oct 17, 2024
@me-no-dev
Copy link
Member

See the ethernet examples. NetworkEvents is part of Network

@VojtechBartoska VojtechBartoska added the Type: Documentation Issue pertains to Documentation of Arduino ESP32 label Oct 18, 2024
@hitecSmartHome
Copy link
Author

@me-no-dev
Copy link
Member

https://github.com/espressif/arduino-esp32/blob/master/libraries/Ethernet/examples/ETH_LAN8720/ETH_LAN8720.ino#L73

You can see the call to attach to the events. Network is NetworkManager + NetworkEvents

@hitecSmartHome
Copy link
Author

Oh I see. So I don't have to call Network.begin();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage Type: Documentation Issue pertains to Documentation of Arduino ESP32
Projects
None yet
Development

No branches or pull requests

3 participants