witnessmenow / spotify-api-arduino

Arduino library for integrating with the Spotify Web-API (Does not play music)
MIT License
178 stars 33 forks source link

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

Open clajarac opened 12 months ago

clajarac commented 12 months ago

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 commented 11 months ago

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