Please clone this repository using the below command:
git clone --recursive https://github.com/espressif/esp-insights.git
Note the --recursive option. This is required to pull in various dependencies. In case you have already cloned the repository without this option, execute this to pull in the submodules:
git submodule update --init --recursive
ESP Insights works out of the box onwards esp-idf release v4.4
and release/v4.3 branch.
We also support Insights on release v4.1.2
and
release v4.2.2
with the help of patches.
Set up ESP IDF, if not done already using the steps
here
and switch to the appropriate branch or release tag.
The below example shows steps for master branch.
Just replace master
with your branch name/tag if you are using any of the other supported IDF versions.
cd $IDF_PATH
git checkout master
git pull origin master
git submodule update --init --recursive
git apply -v path/to/esp-insights/idf-patches/Diagnostics-support-in-esp-idf-tag-v4.1.2-and-tag-v4.2.2.patch
First time user must create an user account.
Insights agent supports sending data over HTTPS and MQTT(TLS) protocol. Default transport is HTTPS so, below mentioned steps are for using HTTPS protocol. If you want to use ESP Insights over MQTT(TLS) protocol, click here.
- Sign up or Sign in on ESP Insights Dashboard
- Visit Manage Auth Keys and generate an Auth Key. You can use any previously generated Auth Key or generate a new one.
- Download the Auth Key.
Please check the minimal_diagnostics example.