-->
Page 3 of 7

Re: Simple DHT-22 temp and Humidity transmitter to MQTT

PostPosted: Wed May 27, 2015 4:36 am
by ian
Perhaps I can save you a little time?
I've been doing something similar and made a small PCB with a DHT11 & a relay on it.
I'm happy to share this if you're interested.

Cheers

Ian

Re: Simple DHT-22 temp and Humidity transmitter to MQTT

PostPosted: Wed May 27, 2015 8:17 am
by nigelbe
Hi,

Thanks for this. I managed to get it working using Mosquitto as the Server/Broker.

I found I had to do a connect with a client name at the end of setup()
Code: Select allclient.connect("clientName");

Otherwise it works great.

Nigel.

Re: Simple DHT-22 temp and Humidity transmitter to MQTT

PostPosted: Thu May 28, 2015 8:21 am
by LeXLuther422
Thanks I'll add it to my code and try it out tonight. I think why mine worked is because I have my mosquitto.conf file with this option.
Code: Select allallow_zero_length_clientid true

Re: Simple DHT-22 temp and Humidity transmitter to MQTT

PostPosted: Thu May 28, 2015 1:19 pm
by moon06
ian wrote:Perhaps I can save you a little time?
I've been doing something similar and made a small PCB with a DHT11 & a relay on it.
I'm happy to share this if you're interested.

Cheers

Ian


Ian,

I'm really interested in your PCB: can you schare the schematics? Where did you get the board produced?

Thanks!


@LeXLuther422 : thanks for the code snippet, very useful here :)