esp8266-wifi-microphone icon indicating copy to clipboard operation
esp8266-wifi-microphone copied to clipboard

MQTT Credentials

Open erte1 opened this issue 3 years ago • 5 comments

Hello! My MQTT server requires credentials. Can you advise where/how to add to the script?

erte1 avatar Dec 11 '21 17:12 erte1

Hi. I think it is possible to connect to mqtt server with user and password but I never tried it. I recommend you to see examples in the included pubsubclient library. For example in the mqtt_auth.ino: client.connect(MQTT::Connect("arduinoClient") .set_auth("testeruser", "testpass"))

or client.connect("ESP8266Client", mqttUser, mqttPassword )

hjltu avatar Dec 25 '21 16:12 hjltu

Thanks for taking the time to reply! I am able to get the second example to login with the most recent PubSubClient version.

I'm not able to capture audio though. I'd love to see a close up picture or schematic of your setup when you have time to share.

erte1 avatar Dec 25 '21 17:12 erte1

The scheme is very obvious, you can see many examples on the Internet esp8266 max4466 But of course there is a lot of issues why you have no sound, try to dig it yourself first, it would be a good practice to make it work. Good luck with that.

hjltu avatar Dec 27 '21 06:12 hjltu

Are you using anything in-between the esp and the max? resistors? capacitors?

erte1 avatar Jan 02 '22 01:01 erte1

I used module like this its ready to use with no any additional components

Are you using anything in-between the esp and the max? resistors? capacitors?

hjltu avatar Jan 02 '22 10:01 hjltu