Coder Social home page Coder Social logo

Comments (7)

antoniuschan99 avatar antoniuschan99 commented on June 19, 2024 1

ok just saw this. Will test and update you in next few days. thanks!

from esp-insights.

antoniuschan99 avatar antoniuschan99 commented on June 19, 2024

Upon investigating looks like on initial call on this block of code, it registers the node but also gives the invalid chip error.

However, on the next call (eg. on reboot) the invalid chip error gets fixed and shows as ESP32. Project and Chip version also gets populated correctly.

char* sensor_pin = get_sensor_pin();

esp_insights_config_t config = {
.log_type = ESP_DIAG_LOG_TYPE_ERROR | ESP_DIAG_LOG_TYPE_WARNING | ESP_DIAG_LOG_TYPE_EVENT,
.node_id = sensor_pin,
.auth_key = insights_auth_key_start,
};

esp_err_t ret = esp_insights_init(&config);

from esp-insights.

vikramdattu avatar vikramdattu commented on June 19, 2024

@antoniuschan99 thanks for reporting. We will try to reproduce the issue and fix it.

Do you always get this issue once the node is up? Or is it a random issue?

from esp-insights.

antoniuschan99 avatar antoniuschan99 commented on June 19, 2024

always getting it. I haven't looked into it further as it isn't a showstopper. If you need more info let me know!

from esp-insights.

vikramdattu avatar vikramdattu commented on June 19, 2024

Hi @antoniuschan99 thanks. As one of the very message after reboot OR on the first boot, sent by ESP-Insights is the boot time data which contains the chip_id.

BTW, can you please let me know if char* sensor_pin = get_sensor_pin(); yields an unique ID and is consistent across reboots?

Please send the node_id of the device as well. This will aid us targeting the issue.

from esp-insights.

vikramdattu avatar vikramdattu commented on June 19, 2024

Hi @antoniuschan99 I am able to re-produce the behaviour.

Here is what I see:
When node starts appearing on the dashboard, it shows the chip as Invalid Chip.
This is just for few seconds and if you refresh the dashboard after, say 5 seconds, it'll show a valid chip.

This behaviour is because, the information is received by Insights' cloud in different message and it might take few seconds till it populates this information. This doesn't need the device to reboot in between, and I think you are mis-interpreting it as getting fixed after reboot.

To make sure, that you are seeing the same as the issue, can you please wait on Invalid chip page for few seconds and if the information changes after the page refresh? (without rebooting the device in between).

from esp-insights.

antoniuschan99 avatar antoniuschan99 commented on June 19, 2024

I will close this issue for now!

from esp-insights.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.