Skip to content

error: 'class JustWifi' has no member named 'createAP' #25

@SaimShuja

Description

@SaimShuja

i am building https://github.com/xoseperez/sonoffsc for esp8266 in platformio

i had to change the justwifi link from
https://bitbucket.org/xoseperez/justwifi.git
to
https://github.com/xoseperez/justwifi

when I press upload, it starts compiling and then I see this error

Processing sonoffsc (platform: https://github.com/platformio/platform-espressif8266.git#v1.5.0; framework: arduino; board: esp01_1m) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 (1.5.0+sha.44295db) > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES:

  • framework-arduinoespressif8266 @ 1.20300.1 (2.3.0)
  • tool-esptool @ 1.409.0 (4.9)
  • toolchain-xtensa @ 1.40802.0 (4.8.2)
    Converting sonoffsc.ino
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 38 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- ArduinoJson @ 5.13.4
    |-- Time @ 1.5.0+sha.ecb2bb1
    |-- ESPAsyncTCP @ 1.2.2+sha.1547686
    |-- ESP Async WebServer @ 1.2.3+sha.f71e3d4
    |-- AsyncMqttClient @ 0.9.0+sha.89bf464
    |-- PubSubClient @ 2.8.0
    |-- Embedis @ 1.2.0
    |-- NtpClientLib @ 3.0.2-beta
    |-- SerialLink @ 0.1.0+sha.abdf382
    |-- JustWifi @ 2.0.2+sha.637297c
    |-- FauxmoESP @ 3.1.1+sha.f4dcb8d
    |-- NoFUSS @ 0.3.0+sha.9f13d9e
    |-- DebounceEvent @ 2.0.3+sha.4f631aa
    |-- ArduinoOTA @ 1.0
    |-- EEPROM @ 1.0
    |-- ESP8266mDNS
    |-- ESP8266WiFi @ 1.0
    |-- Hash @ 1.0
    |-- Ticker @ 1.0
    Building in release mode
    Compiling .pio\build\sonoffsc\src\sonoffsc.ino.cpp.o
    Compiling .pio\build\sonoffsc\liba2b\Time\DateStrings.cpp.o
    Compiling .pio\build\sonoffsc\liba2b\Time\Time.cpp.o
    Compiling .pio\build\sonoffsc\libb88\ESP8266WiFi\ESP8266WiFi.cpp.o
    Compiling .pio\build\sonoffsc\libb88\ESP8266WiFi\ESP8266WiFiAP.cpp.o
    Archiving .pio\build\sonoffsc\liba2b\libTime.a
    Compiling .pio\build\sonoffsc\libb88\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
    Compiling .pio\build\sonoffsc\libb88\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
    Compiling .pio\build\sonoffsc\libb88\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
    C:/Users/saimz/Documents/GitHub/sonoffsc/esp8266/sonoffsc/wifi.ino: In function 'bool createAP()':
    C:/Users/saimz/Documents/GitHub/sonoffsc/esp8266/sonoffsc/wifi.ino:45:15: error: 'class JustWifi' has no member named 'createAP'
    return jw.createAP();
    ^
    C:/Users/saimz/Documents/GitHub/sonoffsc/esp8266/sonoffsc/wifi.ino: In function 'void wifiConfigure()':
    C:/Users/saimz/Documents/GitHub/sonoffsc/esp8266/sonoffsc/wifi.ino:54:8: error: 'class JustWifi' has no member named 'setAPMode'
    jw.setAPMode(WIFI_AP_MODE);
    ^
    Compiling .pio\build\sonoffsc\libb88\ESP8266WiFi\ESP8266WiFiScan.cpp.o
    In file included from sonoffsc\config/all.h:3:0,
    from C:/Users/saimz/Documents/GitHub/sonoffsc/esp8266/sonoffsc/sonoffsc.ino:23:
    sonoffsc\config/general.h:156:33: error: 'AP_MODE_ALONE' was not declared in this scope
    #define WIFI_AP_MODE AP_MODE_ALONE
    ^
    C:/Users/saimz/Documents/GitHub/sonoffsc/esp8266/sonoffsc/wifi.ino:54:18: note: in expansion of macro 'WIFI_AP_MODE'
    jw.setAPMode(WIFI_AP_MODE);
    ^
    C:/Users/saimz/Documents/GitHub/sonoffsc/esp8266/sonoffsc/wifi.ino:81:8: error: 'class JustWifi' has no member named 'scanNetworks'
    jw.scanNetworks(i>1);
    ^
    C:/Users/saimz/Documents/GitHub/sonoffsc/esp8266/sonoffsc/wifi.ino: In function 'void wifiSetup()':
    C:/Users/saimz/Documents/GitHub/sonoffsc/esp8266/sonoffsc/wifi.ino:168:8: error: 'class JustWifi' has no member named 'onMessage'
    jw.onMessage([](justwifi_messages_t code, char * parameter) {
    ^
    *** [.pio\build\sonoffsc\src\sonoffsc.ino.cpp.o] Error 1`

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