can’t GET https://api.spotify.com/v1/me/player/currently-playing
void loop() { if (WiFi.status() == WL_CONNECTED) { HTTPClient http; if (http.begin(“https://api.spotify.com/v1/me/player/currently-playing”)) { String auth = “Bearer ” + spotify_access_token; Serial.println(“Authorization Header: ” + auth); http.addHeader(“Authorization”, auth); int httpResponseCode = http.GET(); String response = http.getString(); Serial.println(response); if (httpResponseCode == HTTP_CODE_OK) { String payload = http.getString(); Serial.println(payload); JSONVar data = JSON.parse(payload); Serial.println(data); String songName = data[“item”][“name”]; […]
How to Perform OTA Update on ATSAM4 via ESP32 Rainmaker without Flashing to ESP32
I am currently working on a project where I have an ESP32 module integrated with an ATSAM4 microcontroller. I am utilizing ESP Rainmaker for managing the ESP32. My objective is to update the firmware of the ATSAM4 through an OTA (Over-the-Air) update initiated by the ESP32. Specifically, I need the ESP32 to download the OTA update file for the ATSAM4 and pass it along without flashing the ESP32 itself. How can I achieve this? What steps should I follow to intercept the OTA content meant for ATSAM4 using the ESP32, and then redirect it appropriately?
Pass variable with function pointer C++
I’m trying to pass a parameter along with a function pointer.
Pass variable with function pointer C/C++
I’m trying to pass a parameter along with a function pointer.