Skip to content

Compilation Error, undeclared frame and wifi #32

@m5ck

Description

@m5ck

Arduino IDE v2.3.4 (2024-12-03)
Board: DOIT ESP32 DEVKITV1

Just cloned the repository today and tried to compile the code. Getting the below listed errors.

/Users/user/Documents/Projects/Zehnder/nrf905/nRF905-API/src/nRF905API/fan.cpp: In member function 'size_t Fan::discover(uint8_t, uint32_t)':
/Users/user/Documents/Projects/Zehnder/nrf905/nRF905-API/src/nRF905API/fan.cpp:117:46: error: 'FAN_FRAME_04' was not declared in this scope; did you mean 'FAN_FRAME_0B'?
  117 |                                         case FAN_FRAME_04 :     // Main unit link was succesful (acknowledge) BETA TESTING for ComfoAir E300 RF
      |                                              ^~~~~~~~~~~~
      |                                              FAN_FRAME_0B
/Users/user/Documents/Projects/Zehnder/nrf905/nRF905-API/src/nRF905API/nRF905API.ino: In function 'void setup()':
/Users/user/Documents/Projects/Zehnder/nrf905/nRF905-API/src/nRF905API/nRF905API.ino:77:9: error: 'WiFi' was not declared in this scope
   77 |         WiFi.mode(WIFI_OFF);
      |         ^~~~
/Users/user/Documents/Projects/Zehnder/nrf905/nRF905-API/src/nRF905API/nRF905API.ino:77:19: error: 'WIFI_OFF' was not declared in this scope; did you mean 'WIFI_IF_AP'?
   77 |         WiFi.mode(WIFI_OFF);
      |                   ^~~~~~~~
      |                   WIFI_IF_AP
/Users/user/Documents/Projects/Zehnder/nrf905/nRF905-API/src/nRF905API/nRF905API.ino:82:27: error: 'WIFI_STA' was not declared in this scope; did you mean 'WIFI_IF_STA'?
   82 |                 WiFi.mode(WIFI_STA);
      |                           ^~~~~~~~
      |                           WIFI_IF_STA
/Users/user/Documents/Projects/Zehnder/nrf905/nRF905-API/src/nRF905API/nRF905API.ino:88:42: error: 'WL_CONNECTED' was not declared in this scope
   88 |                 while ((WiFi.status() != WL_CONNECTED) && (wifi_connect_retries < MAX_WIFI_CONNECT_RETRIES)) {
      |                                          ^~~~~~~~~~~~
/Users/user/Documents/Projects/Zehnder/nrf905/nRF905-API/src/nRF905API/nRF905API.ino:101:30: error: 'WL_CONNECTED' was not declared in this scope
  101 |         if (WiFi.status() != WL_CONNECTED) {
      |                              ^~~~~~~~~~~~
/Users/user/Documents/Projects/Zehnder/nrf905/nRF905-API/src/nRF905API/nRF905API.ino:107:27: error: 'WIFI_AP' was not declared in this scope; did you mean 'WIFI_IF_AP'?
  107 |                 WiFi.mode(WIFI_AP);
      |                           ^~~~~~~
      |                           WIFI_IF_AP
Multiple libraries were found for "EEPROM.h"
  Used: /Users/user/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/EEPROM
  Not used: /Users/user/Documents/Arduino/libraries/M2RET
exit status 1

Compilation error: 'FAN_FRAME_04' was not declared in this scope; did you mean 'FAN_FRAME_0B'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions