Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no matching function for call to 'SpotifyArduino::getCurrentlyPlaying()' #60

Open
clajarac opened this issue Sep 11, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@clajarac
Copy link

Hi Brian,
hope this finds you well!

thanks for sharing your projects with us,

please your help, i'm very new in arduino, and i'm trying the "albumnArtMatrix" and i keep getting the same error :
no matching function for call to 'SpotifyArduino::getCurrentlyPlaying()'

Serial.println("getting currently playing song:");
// Market can be excluded if you want e.g. spotify.getCurrentlyPlaying()
int currentlyPlayingNr = spotify.getCurrentlyPlaying();
if (currentlyPlayingNr >= 0){ // was: if (!currentlyPlaying.error) which causes a compiler error 'struct CurrentlyPlaying' has no member named 'error'
{
printCurrentlyPlayingToSerial(currentlyPlaying);

and the other error i'm getting is: Compilation error: expected primary-expression before '.' token

Serial.print("Artist: ");
Serial.println(SpotifyArtist.artistName);
Serial.print("Artist URI: ");
Serial.println(SpotifyArtist.artistUri);
Serial.println();

Thanks so much for your help
greetings from Chile!

@witnessmenow
Copy link
Owner

Hello!

This is a mistake with the example, the example has not been updated to match changes in the library. The TFT example has been updated or else you can take a look at https://github.com/witnessmenow/Spotify-NFC-Matrix-Display

Which is essentially the same project but with NFC

@witnessmenow witnessmenow added bug Something isn't working good first issue Good for newcomers labels Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants