Giter VIP home page Giter VIP logo

Comments (3)

tyeth avatar tyeth commented on August 15, 2024

Not related to Wifi101 usage, but as far as ignoring conflicting dependencies in platformIO goes, you can add a line to ignore certain libraries for certain environments which may be you're easiest/quickest win. For example we declare a bunch of libraries for all environments, then ignore depending on architecture / conflicts (we also adjust lib_ldf_mode and lib_compat_mode):
https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/blob/main/platformio.ini#L78

On the fixing this library front, we can specify architectural dependencies for platformio in a new library.json file. They suggest having a section like this: https://docs.platformio.org/en/latest/manifests/library-json/fields/dependencies.html#dependencies

"dependencies":
[
    {
        "owner": "bblanchon",
        "name": "ArduinoJson",
        "version": "^6.16.1"
    },
    {
        "owner": "me-no-dev",
        "name": "AsyncTCP",
        "version": "*",
        "platforms": ["espressif32"]
    },
    {
        "name": "external-repo",
        "version": "https://github.com/user/package.git#1.2.3"
    },
    {
        "name": "external-zip",
        "version": "https://github.com/me-no-dev/AsyncTCP/archive/master.zip"
    }
]

The tricky bit is the FONA hardware is a shield, and the WINC1500 comes as both feather and shield/breakout, so there's no clear architecture to rule out without affecting users who may truly depend on the functionality. There is a very small chance that it may be acceptable to consider the FONA hardware + software as obsolete (due to sunsetting 2G networks in different countries), but the WINC1500 is still for sale so it feels wrong to cut out those users.

We could do a major version release and break compatibility, removing FONA, sleepydog and winc1500 dependencies (wifi101), instead adding comments to the header section of the relevant examples to instruct users to manually install them (also the readme).

Tagging @brentru to get another perspective

from adafruit_mqtt_library.

brentru avatar brentru commented on August 15, 2024

@einglis

I'm pretty sure I read that SleepyDog does not work as expected on the ESP8266.

SleepyDog does work on ESP8266. However, its behavior is not identical to SleepyDog on other ESPx platforms since ESP8266's watchdog timer WDT is pre-determined by software and not set-able.

I wonder if there is a way to split the dependencies so that only FONA targets depend on the FONA (and SleepyDog?) libraries? ... WiFi101 is only required by the FONA library, and that is only required on FONA hardware.

As Tyeth mentioned, FONA is a shield that can be added to different products. So adding specific architectures to the library.properties file for the FONA library wouldn't be accurate, as it can run on those architectures.

Looking at your compiler's output, it looks like WiFi101 is part of the Sonoff board support package, too, causing the conflicts:
/sonoff_basic/WiFi101/src/bsp/include/nm_bsp.h:110:23

from adafruit_mqtt_library.

einglis avatar einglis commented on August 15, 2024

Thanks @tyeth and @brentru for your input. It's really helpful to get some extra context; it does seem like removing these dependencies would cause needless pain elsewhere.

Frustratingly, I've just tried to reproduce my compilation issues so I could explore the lib_ignore suggestion, and there is no sign of the original conflicting declarations 😠 Oh well, I suppose I should be happy that it's working...

I'm happy for you to close this ticket if you wish. Thanks again for your time.

from adafruit_mqtt_library.

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.