The code in the book and the download code are different,
I’d appreciate it if you could tell me which one to use.
EBOOK FIRBASE WEB APP: 69p
// Insert your network credentials
#define WIFI_SSID “REPLACE_WITH_YOUR_SSID”
#define WIFI_PASSWORD ” REPLACE_WITH_YOUR_PASSWORD”
// Insert Firebase project API Key
#define API_KEY “REPLACE_WITH_YOUR_API_KEY” <—–1)ebook
// Insert Firebase project API Key
#define API_KEY “REPLACE_WITH_YOUR_PROJECT_API_KEY” <—-2)ebook
**************************************************************************************************
Download Sketch folder (Arduino IDE) <— Download code here,
Download Project folder ESP32 (VS Code + PlatformIO)
Download Project folder ESP8266 (VS Code + PlatformIO)
Download Sketch folder (Arduino IDE) code:
// Insert your network credentials
#define WIFI_SSID “REPLACE_WITH_YOUR_SSID”
#define WIFI_PASSWORD “REPLACE_WITH_YOUR_PASSWORD”
//Insert Firebase project API Key
#define API_KEY “REPLACE_WITH_YOUR_PROJECT_API_KEY” <——-1)Download Sketch folder (Arduino IDE) code
***************************************************************************************
Ebook 와 Download Sketch folder (Arduino IDE) code:
1) YOUR_API_KEY
2) YOUR_PROJECT_API_KEY
Are the two API_KEYs different?
I’d appreciate it if you could tell me which one to use or both,
Have a nice day
You should always use the downloaded code from the project folder as it’s always the most up-to-date.
However, in this case, it doesn’t matter. because you should replace YOUR_PROJECT_API_KEY with your actual API key (the one that you got in previous chapters of the eBook).
Let me know if this is clear.
Regards,
Sara
Thank you for your answer,
I go from firebase again and make a new project,
Get a new API KEY, download the Sketch folder (Arduino IDE),
When I used the downloaded code,
Example) 3.3 Send data to the ‑ database: Sensor readings,
I tried it again
I think it’s going well so far
Thank you.