I did merge my former offline script that was working perfectly with my IOT commection and am pretty sure I made no mistakes.
I back them manually installed the DYPlayer lib since it wasn't listed in the libs.
I already compiled offline with it many times with no problem.
I later moved my sketch folder and it's lib folder around but moved it back as I'm pretty sure.
I cant compile now my offline/IOT mix script in the IDE because of an error which I think is he dosen't find the lib. Correct me if I'm wrong.
What might be the reason? Do I need to have that lib online as well? How?
Here's the error:
C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:107:30: error: no matching function for call to 'DY::Player::Player(HardwareSerial*)'
DY::Player Music(&SerialPort1); // Initialise the player on UART1, pins TX: 33, RX: 25.
^
C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:107:30: note: candidates are:
In file included from C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:31:0:
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:29:5: note: DY::Player::Player()
Player();
^
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:29:5: note: candidate expects 0 arguments, 1 provided
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:24:9: note: constexpr DY::Player::Player(const DY::Player&)
class Player : public DYPlayer
^
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:24:9: note: no known conversion for argument 1 from 'HardwareSerial*' to 'const DY::Player&'
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:24:9: note: constexpr DY::Player::Player(DY::Player&&)
c:\Users\Gorkde\Documents\Arduino\Sketches\libraries\dyplayer\src/DYPlayerArduino.h:24:9: note: no known conversion for argument 1 from 'HardwareSerial*' to 'DY::Player&&'
C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino: In function 'void setup()':
C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:122:45: error: invalid conversion from 'int' to 'SerialMode' [-fpermissive]
SerialPort1.begin(9600, SERIAL_8N1, 33, 25); // Serielle Schnittstelle 1 für Audio an
^
In file included from C:\Users\Gorkde\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Arduino.h:263:0,
from C:\Users\Gorkde\AppData\Local\arduino\sketches\0554A32745997D69F61E04DF56669D0B\sketch\Tuerschloss.ino.cpp:1:
C:\Users\Gorkde\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/HardwareSerial.h:87:10: error: initializing argument 3 of 'void HardwareSerial::begin(long unsigned int, SerialConfig, SerialMode, uint8_t)' [-fpermissive]
void begin(unsigned long baud, SerialConfig config, SerialMode mode, uint8_t tx_pin);
^
C:\Users\Gorkde\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\6e347714-1562-4efd-8f75-c1a70d71421f\Tuerschloss\Tuerschloss.ino:123:46: error: invalid conversion from 'int' to 'SerialMode' [-fpermissive]
SerialPort2.begin(57600, SERIAL_8N1, 16, 17); // Serielle Schnittstelle 2 für Fingerprint Sensor an
^
In file included from C:\Users\Gorkde\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Arduino.h:263:0,
from C:\Users\Gorkde\AppData\Local\arduino\sketches\0554A32745997D69F61E04DF56669D0B\sketch\Tuerschloss.ino.cpp:1:
C:\Users\Gorkde\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/HardwareSerial.h:87:10: error: initializing argument 3 of 'void HardwareSerial::begin(long unsigned int, SerialConfig, SerialMode, uint8_t)' [-fpermissive]
void begin(unsigned long baud, SerialConfig config, SerialMode mode, uint8_t tx_pin);
^
exit status 1
Compilation error: no matching function for call to 'DY::Player::Player(HardwareSerial*)'