martin-ger / uMQTTBroker

MQTT Broker library for ESP8266 Arduino
MIT License
443 stars 105 forks source link

Espeasy plugin #7

Open happytm opened 6 years ago

happytm commented 6 years ago

Martin, This is very helpful ( & rare ) library. I was looking for something like this for long time.I have been using https://github.com/letscontrolit/ESPEasy for long time and it is very easy software with wide variety of sensors hardware supported. Unfortunately it is meant to be connected to outside broker only. Lack of local MQTT network without extra hardware is something I can use for my project. I am new to software so I am not capable of implementing your software in Espeasy but with your help I can do it.Please take a look at Espeasy if you have time.They use original pubsubclient library.Looking at their code they have following files related to MQTT:

https://github.com/letscontrolit/ESPEasy/blob/mega/src/ESPEasy.ino https://github.com/letscontrolit/ESPEasy/blob/mega/src/Controller.ino https://github.com/letscontrolit/ESPEasy/blob/mega/src/ESPEasy-Globals.h

Following are 3 plugin files related to MQTT . These are optional plugin you can choose in GUI but if your library work I can simply use it as a library and delete all these plugins or modify one of the plugins to use as uMQTT broker:

https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C002.ino https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C005.ino https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C006.ino

I had proposed this on Espeasy forum when your library came out :

http://www.letscontrolit.com/forum/viewtopic.php?f=6&t=3573

The other library they were discussing is :

https://github.com/bcatalin/bondar https://github.com/bcatalin/demoapp

but no one could resolve the issue.

Please help.

Thanks

martin-ger commented 6 years ago

Let me understand what exactly you're willing to do: you want to run a network of several ESPEasy nodes and one of these nodes should act as MQTT to link all that together?

ESPEasy has a reasonable powerful rule-language that can inplement some app logic. But perhaps you might also consider using my https://github.com/martin-ger/esp_mqtt on the broker node. It has a similar scripting language and while it doesn't have the sophisticated sensor support, it can do basic digital I/O, ADC readings and PWM. So what about using this existing build with several ESPEasy nodes around?

A general remark: ESPEasy uses platform.io as building environment. I know, that it can handle Arduino libs, but I have no experience with it and no installation ever tested.

happytm commented 6 years ago

Hi Martin,

Thanks for your quick reply & suggestions. I use at least 10 different sensors supported by Espeasy on 6 different devices so it wll be hard to move from that project and start learning new software as I am new to software. I do not use their platform.io environment. I simply use arduino IDE for espeasy. I know I was asking for too much anyway.

Thanks again.