Comments (3)
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.
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.
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)
- How to use to set callback to a class member function ? HOT 1
- Message length limit when publishing HOT 5
- Dynamically Assigning Adafruit IO credentials to Adafruit MQTT object
- Client disconected due protocol error when counting PUBLISH packets from 0 HOT 6
- connection closed: Error: read ECONNRESET
- packet_id_counter incrementing even if packet is dropped
- ESP32 won't reconnect to wifi after disconnecting HOT 1
- Support for FONA 3G cellular card HOT 1
- In several minitues my device always disconnect but connect back immediately HOT 1
- Feature Request: Add functionality for the Arduino Protenta Pro Series of boards HOT 2
- Connectivity issue when using broker on local IP HOT 2
- retain breaks old code - wippersnapper CI builds HOT 5
- Silent Limit on the number of subscribed topics, callback ignored HOT 1
- Mqtt port issue . Not recognizing from config file.
- [ESP32] MQTT Payload not getting triggered only when the payload is exactly 104 and 105 characters?!?
- Dual band wifi connection issue with esp32
- Won't Complie on ESP32 HOT 1
- ESP32 expect a WDT, but none is configured
- Connection failure occurs when the connection length is greater than 128
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_mqtt_library.