Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Specific libraries to compile the KC868-A32 Demo
#1
Could you specify the exact libraries to compile the demo for:

PCF8574.h  (there are many available to install)

WiFiManager.h

Sorry if this is an obvious answer to experienced users, I get numerous errors and I've tried many libraries


WARNING: library WiFiManager-master claims to run on esp8266, esp32 architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
KC868-A32_Web_Server:11:1: error: 'WiFiManager' does not name a type; did you mean 'WiFiManager_h'?
WiFiManager wm;
^~~~~~~~~~~
WiFiManager_h
KC868-A32_Web_Server:34:27: error: no matching function for call to 'TwoWire::TwoWire(int)'
TwoWire I2Cone = TwoWire(0);
                          ^
In file included from C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:38:0,
                from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:52:5: note: candidate: TwoWire::TwoWire()
    TwoWire();
    ^~~~~~~
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:52:5: note:  candidate expects 0 arguments, 1 provided
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note: candidate: constexpr TwoWire::TwoWire(const TwoWire&)
class TwoWire : public Stream
      ^~~~~~~
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note:  no known conversion for argument 1 from 'int' to 'const TwoWire&'
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note: candidate: constexpr TwoWire::TwoWire(TwoWire&&)
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note:  no known conversion for argument 1 from 'int' to 'TwoWire&&'
KC868-A32_Web_Server:35:27: error: no matching function for call to 'TwoWire::TwoWire(int)'
TwoWire I2Ctwo = TwoWire(1);
                          ^
In file included from C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:38:0,
                from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:52:5: note: candidate: TwoWire::TwoWire()
    TwoWire();
    ^~~~~~~
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:52:5: note:  candidate expects 0 arguments, 1 provided
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note: candidate: constexpr TwoWire::TwoWire(const TwoWire&)
class TwoWire : public Stream
      ^~~~~~~
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note:  no known conversion for argument 1 from 'int' to 'const TwoWire&'
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note: candidate: constexpr TwoWire::TwoWire(TwoWire&&)
C:\Users\spvis\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:34:7: note:  no known conversion for argument 1 from 'int' to 'TwoWire&&'
KC868-A32_Web_Server:37:41: error: no matching function for call to 'PCF8574:TongueCF8574(TwoWire*, int, int, int)'
PCF8574 pcf8574_R1(&I2Ctwo, 0x24, 15, 13);
                                        ^
In file included from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:0:
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note: candidate: PCF8574:TongueCF8574(uint8_t, uint8_t, void (*)())
  PCF8574(uint8_t address, uint8_t interruptPin,  void (*interruptFunction)() );
  ^~~~~~~


                                        ^
In file included from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:0:
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note: candidate: PCF8574:TongueCF8574(uint8_t, uint8_t, void (*)())
  PCF8574(uint8_t address, uint8_t interruptPin,  void (*interruptFunction)() );
  ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note:  candidate expects 3 arguments, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:109:2: note: candidate: PCF8574:TongueCF8574(uint8_t)
  PCF8574(uint8_t address);
  ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:109:2: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note: candidate: constexpr PCF8574:TongueCF8574(const PCF8574&)
class PCF8574 {
      ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note: candidate: constexpr PCF8574:TongueCF8574(PCF8574&&)
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
KC868-A32_Web_Server:39:41: error: no matching function for call to 'PCF8574:TongueCF8574(TwoWire*, int, int, int)'
PCF8574 pcf8574_R3(&I2Ctwo, 0x21, 15, 13);
                                        ^
In file included from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:0:
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note: candidate: PCF8574:TongueCF8574(uint8_t, uint8_t, void (*)())
  PCF8574(uint8_t address, uint8_t interruptPin,  void (*interruptFunction)() );
  ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note:  candidate expects 3 arguments, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:109:2: note: candidate: PCF8574:TongueCF8574(uint8_t)
  PCF8574(uint8_t address);
  ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:109:2: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note: candidate: constexpr PCF8574:TongueCF8574(const PCF8574&)
class PCF8574 {
      ^~~~~~~


      ^~~~~~~
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note: candidate: constexpr PCF8574:TongueCF8574(PCF8574&&)
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
KC868-A32_Web_Server:45:39: error: no matching function for call to 'PCF8574:TongueCF8574(TwoWire*, int, int, int)'
PCF8574 pcf8574_I3(&I2Cone, 0x21, 4, 5);
                                      ^
In file included from C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:8:0:
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:110:2: note: candidate: PCF8574:TongueCF8574(uint8_t, uint8_t, void (*)())
  PCF8574(uint8_t address, uint8_t interruptPin,  void (*interruptFunction)() );
  ^~~~~~~

C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note: candidate: constexpr PCF8574:TongueCF8574(PCF8574&&)
C:\Users\spvis\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:106:7: note:  candidate expects 1 argument, 4 provided
C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino: In function 'void setup()':
KC868-A32_Web_Server:132:8: error: 'class WiFiClass' has no member named 'mode'
  WiFi.mode(WIFI_STA);
        ^~~~
KC868-A32_Web_Server:132:13: error: 'WIFI_STA' was not declared in this scope
  WiFi.mode(WIFI_STA);
            ^~~~~~~~
KC868-A32_Web_Server:134:5: error: 'wm' was not declared in this scope
    wm.setConfigPortalTimeout(timeout);
    ^~
C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino: In function 'void loop()':
KC868-A32_Web_Server:449:42: error: 'wm' was not declared in this scope
  if ( digitalRead(TRIGGER_PIN) == LOW) {wm.resetSettings();ESP.restart();}
                                          ^~
KC868-A32_Web_Server:449:61: error: 'ESP' was not declared in this scope
  if ( digitalRead(TRIGGER_PIN) == LOW) {wm.resetSettings();ESP.restart();}
                                                            ^~~
C:\Users\spvis\Documents\Arduino\KC868-A32\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:449:61: note: suggested alternative: 'SP'
  if ( digitalRead(TRIGGER_PIN) == LOW) {wm.resetSettings();ESP.restart();}
                                                            ^~~
                                                            SP
exit status 1
'WiFiManager' does not name a type; did you mean 'WiFiManager_h'?
Reply


Messages In This Thread
Specific libraries to compile the KC868-A32 Demo - by VanPeerce - 10-11-2022, 08:33 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)