craftmetrics / esp32-homie

An esp-idf component for the Homie convention
MIT License
27 stars 9 forks source link

Support esp-idf master, add .travis.yml, import an example #6

Closed trombik closed 4 years ago

trombik commented 4 years ago

This PR supports esp-idf master.

snprintf(3) usages in the code have been replaced with a common idiom. there are other possible sources of bugs, but tests should be added first. you may drop 57d1226.

lukecyca commented 4 years ago

Thank you very much for this contribution!

trombik commented 4 years ago

the supported esp-idf versions should be the latest stable 3.x (3.3 at the moment), and master.

having another repository for examples is not a good idea because maintaining multiple repositories is PITA. examples should evolve as the development progresses. tests and code should be in a single repository. yes, i removed the submodule.

you need to purchase the Open Source plan, which costs zero. go to https://github.com/settings/installations to configure it. set "All repositories" in "Repository access", if you would like to enable travis CI in all your public repositories.

I am working on homie 4 support at https://github.com/trombik/esp32-homie/tree/homie4 now. it is not a trivial change. in that branch, homie 2.x support has been dropped because I cannot test 2.x (openhab2 does not support 2.x any more). some issues are remaining (see issues).