• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 MQTT analog send digital receive

Q&A Forum › Category: ESP32 › ESP32 MQTT analog send digital receive
0 Vote Up Vote Down
Ian Stewart asked 4 years ago

Dear Rui and Sara,
Thanks for a great ESP32 course!I wish to make yet another plant watering system, utilising an ESP32, RPi 3 Dietpi and node-red, I’ve tried out your tutorial with an ESP32 BME280 and everything works fine (except I tried to add Pressure but it didn’t work).
Would it be possible for you to make for me a basic Arduino ino that reads an analog input and sends to a topic and reads a from a topic to switch a digital output using AsyncMqttClient which I could expand on? The controlling I would set up myself in node-red. Sorry to ask this it’s just at the moment I can’t get my head around the fine details of sending and receiving in Mqtt
Kind regards Ian

Question Tags: MQTT
3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 4 years ago

Hello Ian, unfortunately we receive hundreds of requests per way, so it’s impossible for us to write custom software at the moment due to time constraints. we can only help, if you need help following one of our projects.
If you know how to read the sensor and publish an MQTT reading, you can just create more MQTT topics to publish more readings. What didn’t work while reading the pressure?
Thanks for asking,
Rui

0 Vote Up Vote Down
Ian Stewart answered 4 years ago

Hello Rui, Yes I can believe you do, thanks anyway. I’ve hacked your MQTT Client ESP32 #1 ino and have the Topic values of a moisture sensor reading in Node-Red, just sorting out the ESP subscribing back to the ESP.
I’ll look into the reading the Pressure later, then it might become clear.
Thanks again
Ian

0 Vote Up Vote Down
Rui Santos Staff answered 4 years ago

Ok Ian! If you have any error compiling your code, I might be able to help knowing what’s missing in your code!

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.