Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Sketch works but no data to MQTT #31

Open
mbarnes106 opened this issue Nov 29, 2019 · 0 comments
Open

Sketch works but no data to MQTT #31

mbarnes106 opened this issue Nov 29, 2019 · 0 comments

Comments

@mbarnes106
Copy link

Hello. First time using esp32 but think I got it working.

Downloaded your folder, opened config.h.example and added my mac address, ip address of MQTT (synology nas package) and wifi id and password.

Saved this file in the folder as config.h
loaded this and flora.ino into arduino, checked and uploaded it to esp32.

Pressing the reload button and watching the serial monitor I see it connecting to flora mac address, force device in data mode, access characteristic from device, read them and display them
It then says:
wifi disconnected
mqtt disconnected
going to sleep now

Seems successful but I am subscriped to topic flora on mqtt and get no updated information?

I notice your code has username and password fields, I have no username or password for my MQTT (not even seen a way to set one in synology) so wondering if this is the problem.

I get no errors, but I get no data arriving at MQTT. Not really sure what to do now. Running an mqtt client on mac and iphone I can publish topics and see them so the mqtt broker is working.

Only other thing to note, quite often (almost every time) the first time I run the code on the esp32 if "works" but all the data is blank, the next time I press reload on the esp32 I get data.

Sorry for the long thread, wondering if you can help.

ps, I am using a Vegtrug sensor which is made by Xaiomi and works on Xaiomi app but thought I would mention this.

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

No branches or pull requests

1 participant