mysensors / MySensors

MySensors library and examples
https://www.mysensors.org
1.3k stars 891 forks source link

Need a better solution not to include PJON lib into MySensors repo #1516

Open virtual-maker opened 2 years ago

virtual-maker commented 2 years ago

There are two main problems with the newly included PJON library:

  1. The addition seems to break the CI and let always fail the "Toll gate" step.
  2. The included PJON library is practically a fork which makes it difficulty to sync it with the original PJON lib.

Current discussion:

Ideas and suggestions are very welcome.

Originally posted by @mfalkvidd in https://github.com/mysensors/MySensors/issues/1515#issuecomment-1033165291

mfalkvidd commented 2 years ago

Related: https://github.com/mysensors/MySensorsArduinoExamples/issues/52

mfalkvidd commented 1 year ago

__has_include() might be useful, to display a user-friendly message with instruction on which library to install and how to install it.

But we still wouldn't know which version the included library is (unless the library itself has some define that determines the version) which makes it hard to ensure compatibility. Whenever the upstream library has breaking changes, MySensors users would be left clueless.

The same issue applies to TinyGSM, https://forum.mysensors.org/topic/12003/gsm-mqtt-gateway-can-we-update-the-tinygsm-library-used