botabotlab / ESP32CAM-MQTT

Sketch to control an ESP32CAM and export pictures via MQTT
54 stars 22 forks source link

ESP32CAM-MQTT #2

Open maxmueller50 opened 2 years ago

maxmueller50 commented 2 years ago

hi in my project "Door Bell" I will use a ESP32-CAM together with a Raspi3+ (Smart-Home-automation), Node-Red/MQTT with Commands in booth direction (Ring-Button, door-opener...)

first I build up the Sketch for the ESP32, then Node-Red Flow with MQTT I was very surprised, because of it works directly as well (all commands in booth directions) but unfortunately it show's no picture on the template/dashboard

so I could find your Code here and also I could find out, why (send picture was completely wrong) the Sketch by the ESP32 I have adjusted this accordingly - but without any success! and no debug notes!

I then made for tests use of this Demo Sketch and Demo Flow, but get troubles with authentification, in my Sketch I don't use it (HostName, mqttUser, mqttPassword) I'm trying to fix it, but without success beside, for this tests, I use a WIN platform ( not the Raspi) with Node-Red locally

by NR: [info] [mqtt-broker:217100a2f85c9176] Connection failed to broker: mqtt://192.168.1.68:1883 by the esp32: Attempting MQTT connection...failed, rc=-2 try again in 5 seconds)

afterward I changed back to the forwarding application, my sketch and Raspi-Node-Red... unfortunately since then no connections is possible, of course without any changement's in all!!! by Raspi/Node-Red:
2 Mar 13:22:07 - [info] [mqtt-broker:dfd5559ad9967c2f] Connection failed to broker: mqtt://192.168.1.69:1883

in the flow (yellow) "establishing connection"

by the way, what influence does the instruction have: DynamicJsonDocument CONFIG(2048) ?

my further acts:

I have reading in several forum in various matter, but could not find a way or a idea for help I'm not more able to use all of them.

thank you in advance for any informations

maxmueller50 commented 2 years ago

OK! all the problems mentioned above have been resolved (wrong Mosquitto address)

maxmueller50 commented 2 years ago

with the Sketch ESP32CAM-MQTT and Node-Red-Demo - Flow, Camera-configurations adjustment and Capture work in the Monitor of the ESC32-Cam the info "PING" and "CLIC" are coming - but >>> NO PICTURE is arriving in NR-Template, ### no message on the mqtt-in Topic "OUT"