espressif / esp-insights

ESP Insights: A remote diagnostics/observability framework for connected devices
Apache License 2.0
101 stars 27 forks source link

ESP Insights Fails #44

Open michaelboeding opened 1 month ago

michaelboeding commented 1 month ago

I (2063) esp_rmaker_work_queue: Work Queue created. E (2073) esp_insights: Failed to register event handler for INSIGHTS_EVENTS E (2083) esp_insights: Failed to enable ESP Insights. W (2083) insights_transport: disconnect callback not set I (2093) esp_rmaker_work_queue: esp_rmaker_work_queue was successfully deinitialized

When I try to setup esp insights in my project I get the above error - any suggestions?

shahpiyushv commented 1 month ago

Seems your code may be missing the esp_event_loop_create_default() API call which is required before any event handlers can be registered. Check this and any other such missing calls by referring our examples

michaelboeding commented 1 month ago

I call the esp_event_loop_create_default() when I setup wifi. I'm not using rainmaker could that have something to do with it?

vikramdattu commented 1 month ago

@michaelboeding did you try example from esp-insights (or from examples present in esp-raimaker if you're using RainMaker)? Does the example work fine and you get issues with your project?

michaelboeding commented 1 month ago

Haven't I can try that. I'm not using rainmaker at all in my current project - besides whats used for insights.

vikramdattu commented 1 month ago

Hi @michaelboeding please check the README. Should be good enough as the starting point.