Skip to content

Error: 'Net' in namespace 'ustd' does not name a type ? #3

Closed
@nohkumado

Description

@nohkumado

Hello,
ran into another problem.... i just copied over the sample code (from https://github.com/muwerk/munet), and there this line:
#define LED_BUILTIN 2 //had t o add this since ESP don't have a predefined LED_BUILTIN
ustd::Net net(LED_BUILTIN);

gives the following error:
Tankwaechter:24:7: error: 'Net' in namespace 'ustd' does not name a type
ustd::Net net(LED_BUILTIN);
^
/home/bboett/Arduino/Tankwaechter/Tankwaechter.ino: In function 'void setup()':
Tankwaechter:53:5: error: 'net' was not declared in this scope
net.begin(&sched); // connect to WLAN and sync NTP time, credentials read from SPIFFS, (s.b.)
^
Mehrere Bibliotheken wurden für "WiFi.h" gefunden
Benutzt: /home/bboett/.arduino15/packages/esp32/hardware/esp32/1.0.4-rc1/libraries/WiFi
Nicht benutzt: /home/bboett/Downloads/arduino-1.8.12-linux64/arduino-1.8.12/libraries/WiFi
exit status 1
'Net' in namespace 'ustd' does not name a type

how can i solve this one?

BTW in the sample code it would be nice to add the values for ESP vars in line 1!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions