Code Monkey home page Code Monkey logo

edgehog-esp32-device's People

Contributors

bettio avatar francescovaiani avatar harlem88 avatar rbino avatar sorru94 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

edgehog-esp32-device's Issues

LedBehavior: GPIO still active after behaviors

If you execute one of the behaviors implemented by LedBehavior, the GPIO remains enabled after execution.

To reproduce it, go on Edgehog frontend page and click the identify button in check my device section.

Support for ESP-IDF 5.0

The ESP-IDF 5.0 was released in December 2022.
It is a major release with breaking changes. Appropriate fixes should be applied to this project to support this version.

Add ESP32 Doxygen Doc

ESP32 Edgehog component API doc should be generated using doxygen, and published automatically using CI.

Decouple the initialization from the first data send

The edgehog_device_new contains both the Astarte interface configuration and the initial sending data. They should also be separated for reasons of integration with other components that use Astarte.

Tipical app Integration with Astarte

  • add edgehog-interface
  • add third-party-interface
    ...
  • init edgehog
  • init third-party compent

There are several options for achieving this :

  • Add init method to edeghog device where move the initial send data.
  • Move the initial send data to start method
  • ...

[Example] Move the Edgehog setup before Astarte device start

Move from the example the edgehog_device_new function before the astarte_device_start function, this also prevents publication of data before publishing the Astarte introspection.

edgehog_device_telemetry_config_t telemetry_config
        = { .type = EDGEHOG_TELEMETRY_SYSTEM_STATUS, .period_seconds = 3600 };

    edgehog_device_config_t edgehog_conf = { .astarte_device = astarte_device,
        .partition_label = "nvs",
        .telemetry_config = &telemetry_config,
        .telemetry_config_len = 1 };
    edgehog_device = edgehog_device_new(&edgehog_conf);

    if (!edgehog_device) {
        ESP_LOGE(TAG, "Failed to create Edgehog device");
        return;
    }
    
    ...
    
     if (astarte_device_start(astarte_device) != ASTARTE_OK) {
        ESP_LOGE(TAG, "Failed to start astarte device");
        return;
    }

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.