Hi,
I'm having trouble getting the Spotify Remote to work. I've followed the guide, and the Spotify unique Client ID and Client Secret are in place at the respective variables in settings.h. BUT, after uploading the sketch, calibrating the touch screen and accessing http://esp8266.local/ the TFT just shows the splash screen and "Please define clientId and clientSecret". But those ARE defined in settings.h, so I'm out of ideas of what to do. The serial monitor shows this:
Body starts now
start document
start document
HREF:
--------Response Code: 400
--------Free mem: 24672
Requesting URL: GET /v1/me/player/currently-playing HTTP/1.1
Host: api.spotify.com
Authorization: Bearer
Connection: close
HTTP/1.1 400 Bad Request
HTTP Code: 400
Content-Type: application/json
Content-Type: application/json
WWW-Authenticate: Bearer realm="spotify", error="invalid_request", error_description="Only valid bearer authentication supported"
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Accept, Authorization, Origin, Content-Type, Retry-After
Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE, PATCH
Access-Control-Allow-Credentials: true
Access-Control-Max-Age: 604800
Content-Length: 99
Date: Tue, 08 Jan 2019 20:05:04 GMT
Via: 1.1 google
Alt-Svc: clear
Connection: close
So there's obviously an identification problem, but I just can't see what I've done wrong. Any ideas?
Regards,
Thorleif