Report this

What is the reason for this report?

How do I save mqtt data into mysql server deployed on the same droplets? (Ie: same IP address). Is this possible?

Posted on April 16, 2018

Will be connecting to express.js/Node.js & Esp8266 (Wemos D1 R2 on Arduino IDE)



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You should be able to record this data from the same IP address. This library will help with the MQTT protocol.

Since mqtt and MySQL use different ports, using the local mqtt service should not be any different from connections with a remote device.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.