ICYStream and WiFiManager - Initial WiFi credentials unknown ( Moved from wrong repository discussion) #1761
-
Thanks for your previous reply ->pschatzmann/arduino-audio-driver#38 I realised that I had posted in wrong place. I am very new to ESP32 and c++ I am using an AI Thinker AudioKit V2.2 A247 with an E8388, and I can get a Sinewave output The problem with this is that since I have moved the AudioTools objects into the code, the StreamCopy object copier is not found src/main.cpp: In function 'void loop()': here is my sketch. _/**
#include <Arduino.h> #include "AudioTools.h" // install https://github.com/pschatzmann/arduino-audio-tools // Setup WiFi using WifiManager //AudioInfo info(44100, 2, 16); void setup() { // reset settings - wipe stored credentials for testing // Automatically connect using saved credentials, bool res; if (!res) Serial.println(WiFi.SSID()); String currentSSID = WiFi.SSID(); const char* ssid = currentSSID.c_str(); ICYStream url(ssid,pwd); I2SCodecStream out(AudioKitEs8388V1); // start I2S & codec with i2c and i2s configured above out.begin(config); // Arduino loop - copy sound to out |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is impossible to read: Please use the proper code formatting syntax, Dont define variables locally that you want to be available across your sketch. Maybe you should start with some C++ tutorial first... |
Beta Was this translation helpful? Give feedback.
This is impossible to read: Please use the proper code formatting syntax,
Dont define variables locally that you want to be available across your sketch.
Maybe you should start with some C++ tutorial first...