Git Product home page Git Product logo

Comments (12)

LeonVos avatar LeonVos commented on September 7, 2024 1

I am working on that. (but time is the problem, be patient)

from mclighting.

LeonVos avatar LeonVos commented on September 7, 2024 1

@toblum,
MQTT finished !!
Works great, i did not find any issue with the other clients/servers, everything works like a ...... ;-)
I only did not test OTA yet.
When you like it (too) you can ADD this to your MC Lighting (V3 ?) ;-)

Regards Leon Vos

from mclighting.

marksev1 avatar marksev1 commented on September 7, 2024

Could you integrate that into the main sketch so that we have all the features at once? :)

from mclighting.

toblum avatar toblum commented on September 7, 2024

Hi @LeonVos,

this is great, I also experimented with that some weeks ago, but did not find any time to dig deeper.

I had a problem to make PubSubClient and WiFiManger work together. This is a known issue: tzapu/WiFiManager#15

I had some progres with https://github.com/btomer/WiFiManager which is a fork of WiFiManger, but this may ba a bad option, as this is not regularly updated.

Regards
Tobias

from mclighting.

marksev1 avatar marksev1 commented on September 7, 2024

So its updated in the first post right? Can we see it on your github too?

from mclighting.

LeonVos avatar LeonVos commented on September 7, 2024

Hi, becauce it's a addon on MClighting, i want to keep it here.
I have update the above, just kopie and past it over the main MCLichting sketch page, and make your needed changes on it.
Leon Vos.

from mclighting.

toblum avatar toblum commented on September 7, 2024

Hi @LeonVos,
These are great news. I will put your code in a new branch. There we can do some tests before we replace the master branch.
Regards
Tobias

from mclighting.

drschnalli avatar drschnalli commented on September 7, 2024

No matter what i do... i cannot compile the mqtt branch :(

McLighting.ino: In function 'void setup()': McLighting:354: error: expected '}' before ';' token McLighting:354: error: expected ')' before ';' token McLighting.ino: At global scope: McLighting:355: error: mixing declarations and function-definitions is forbidden McLighting:355: error: expected initializer before ')' token McLighting:357: error: 'server' does not name a type McLighting:365: error: expected unqualified-id before ')' token McLighting:369: error: 'server' does not name a type McLighting:372: error: expected unqualified-id before ')' token McLighting:374: error: 'server' does not name a type McLighting:376: error: 'server' does not name a type McLighting:380: error: expected unqualified-id before ')' token McLighting:382: error: 'server' does not name a type McLighting:388: error: expected unqualified-id before ')' token McLighting:393: error: 'server' does not name a type McLighting:412: error: expected unqualified-id before ')' token McLighting:414: error: 'server' does not name a type McLighting:419: error: expected unqualified-id before ')' token McLighting:421: error: 'server' does not name a type McLighting:424: error: expected unqualified-id before ')' token McLighting:426: error: 'server' does not name a type McLighting:431: error: expected unqualified-id before ')' token McLighting:433: error: 'server' does not name a type McLighting:435: error: expected unqualified-id before ')' token McLighting:437: error: 'server' does not name a type McLighting:442: error: expected unqualified-id before ')' token McLighting:444: error: 'server' does not name a type McLighting:449: error: expected unqualified-id before ')' token McLighting:451: error: 'server' does not name a type McLighting:456: error: expected unqualified-id before ')' token McLighting:458: error: 'server' does not name a type McLighting:464: error: expected unqualified-id before ')' token McLighting:466: error: 'server' does not name a type McLighting:471: error: expected unqualified-id before ')' token McLighting:473: error: 'server' does not name a type McLighting:478: error: expected unqualified-id before ')' token McLighting:480: error: 'server' does not name a type McLighting:485: error: expected unqualified-id before ')' token McLighting:487: error: 'server' does not name a type McLighting:492: error: expected unqualified-id before ')' token McLighting:494: error: 'server' does not name a type McLighting:496: error: expected unqualified-id before ')' token McLighting:498: error: 'server' does not name a type McLighting:502: error: expected unqualified-id before ')' token McLighting:504: error: 'server' does not name a type McLighting:505: error: expected declaration before '}' token expected '}' before ';' token

from mclighting.

LeonVos avatar LeonVos commented on September 7, 2024

Hhhmmm i see alot of missing }}}}}}}} errors , i think you copied wrong. This week i try to place it on a "new" github, with (and thats importend too) to correct pubsubclient.h. A link will be put here.

from mclighting.

drschnalli avatar drschnalli commented on September 7, 2024

I was a bit confused as i just downloaded the complete zip package of the mqtt branch. I was using Arduino 1.8.x for Windows and i didnt change the libraries with which i could compile the master branch (successfully) before. So i dont know what i'm doing wrong... i think youre using a special PubSubClient or Wifimanager or some other library :(... i even tried another Arduino IDE (1.6.5) which gave me the same error messages :(

from mclighting.

toblum avatar toblum commented on September 7, 2024

@ALL:
I also did not manage to get the above code to work. Maybe problems when I copied the text.

In the meantime I got my initial MQTT implementation also running. I created a new branch "mclighting_mqtt_pubsub". My implementation uses the same codes as the websockets protocol, so no changes here.
The MQTT credentials can be configured via the WiFiManager.

Maybe you all can have a look at it and maybe it's a good idea to merge it with LeonVos code. What do you think @LeonVos ?

from mclighting.

toblum avatar toblum commented on September 7, 2024

I will close this issue now just to cleanup a bit.

Tobias

from mclighting.

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.