This shows you the differences between two versions of the page.
|
iothings:laboratoare:2025:lab9 [2025/11/23 12:54] dan.tudose [4.2 index.html] |
iothings:laboratoare:2025:lab9 [2025/11/23 13:43] (current) dan.tudose [3. ESP32-C6 Sparrow Firmware (HTTPS + BME680 + NeoPixel)] |
||
|---|---|---|---|
| Line 189: | Line 189: | ||
| * ''WiFiClientSecure'' for HTTPS. | * ''WiFiClientSecure'' for HTTPS. | ||
| - | * For simplicity we will call ''setInsecure()'' (it still uses TLS but skips certificate validation). | + | * We have embedded a proper CA certificate. |
| - | *For production, embed proper CA certificates.* | + | * The certificate is the full Google TLS root (GTS Root R1, cross-signed by GlobalSign) captured from a live identitytoolkit.googleapis.com chain and reverted to setCACert using that PEM |
| Line 240: | Line 240: | ||
| index.html | index.html | ||
| app.js | app.js | ||
| + | chart.umd.min.js | ||
| </code> | </code> | ||
| Line 251: | Line 252: | ||
| ==== 4.3 app.js ==== | ==== 4.3 app.js ==== | ||
| - | Create ''dashboard/public/app.js'' and paste this. | + | Create ''dashboard/public/app.js'' and paste [[iothings:laboratoare:2025_code:lab9_3|this]]. |
| - | **Replace** the ''firebaseConfig'' values with those from your Firebase console: | + | |
| + | **Replace** the ''firebaseConfig'' values with those from your Firebase console. | ||
| + | ==== 4.4 chart.umd.min.js ==== | ||
| + | Create ''dashboard/public/chart.umd.min.js''. You need this for rendering the charts locally. | ||
| + | |||
| + | The code is [[iothings:laboratoare:2025_code:lab9_4|here]]. | ||
| ===== 5. Deploy Dashboard with Firebase Hosting ===== | ===== 5. Deploy Dashboard with Firebase Hosting ===== | ||