Skip to content

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

@clajarac

Description

@clajarac

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions