libraries/Insights/examples/MinimalDiagnostics/README.md
In this example we will be using the auth key that we downloaded while setting up ESP Insights account.
Copy Auth Key to the example
const char insights_auth_key[] = "<ENTER YOUR AUTH KEY>";
Inside the example sketch, enter your Wi-Fi credentials in WIFI_SSID and WIFI_PASSPHRASE macros.
Start the Serial monitor
Once the device boots, it will connect to the Wi-Fi network, look for logs similar to below and make a note of Node ID.
I (4161) esp_insights: =========================================
I (4171) esp_insights: Insights enabled for Node ID 246F2880371C
I (4181) esp_insights: =========================================
Once everything is set up, any diagnostics information reported will show up on the Insights Dashboard. Sign in using the your credentials.
Visit Nodes section on the dashboard and click on the Node ID to monitor device diagnostics information.
Note: Diagnostics data is reported dynamically or when the buffers are filled to configured threshold. So, it can take some time for the logs to reflect on the dashboard. Moreover, if a large number of logs are generated then data will be sent to cloud but, if it fails(eg reasons: Wi-Fi failure, No internet) then any newer logs will be dropped.