Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using lmroy version... #21

Open
lolouk44 opened this issue Feb 26, 2018 · 1 comment
Open

using lmroy version... #21

lolouk44 opened this issue Feb 26, 2018 · 1 comment

Comments

@lolouk44
Copy link

A couple of questions / comments if I may:

  1. your step 2. Clone the LMROY version of the mqtt library refers to LMROY but the github is imroy (starting with an i) Threw me off a bit :) You may want to update your README.md
  2. if one must use imroy's files, why do you #include <PubSubClient.h> instead of #include "PubSubClient.h"? The latter would look for a local copy (in the sketch folder) first then the libraries. This would mean one is not forced to use imroy's library for all arduino projects. Or am I missing something? (I'm still a bit of a n00b with arduino).

Thanks

@thepotoo
Copy link

thepotoo commented May 4, 2018

This is what I did - I moved the files

MQTT.cpp
MQTT.h
PubSubClient.cpp
PubSubClient.h
PubSubClient_JSON.h

from the imroy pubsubclient folder and put them in the same directory as KmanSonoff_v1.00sc.ino

Then edit KmanSonoff_v1.00sc.ino and change
#include <PubSubClient.h>
to
#include "PubSubClient.h"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants