Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
MQTT (Message Queuing Telemetry Transport) is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. The MQTT protocol enables a publish/subscribe messaging model in an extremely lightweight way. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.
0
votes
1
answer
3k
views
Convert JSON into string for MQTT
Update :
If I doclient.publish("/devices/data", data_json.c_str());, it gets compiled, but data doesn't appear in mqtt. …
1
vote
1
answer
5k
views
publish json data to mqtt
I am trying to publish JSON data to mqtt with following code snippet
#include <Arduino_JSON.h>
JSONVar data;
data["temperature"] = temperature;
data["humidity"] = humidity;
data["pressure"] = pressure …
1
vote
2
answers
9k
views
esp32-cam publish image to mqtt
I want to publish image capture through ESP32-CAM to MQTT. … StringArray.h>
#include <PubSubClient.h>
#include <base64.h>
#include <libb64/cencode.h>
// Replace with your network credentials
const char* ssid = "####";
const char* password = "####";
// Add your MQTT …
1
vote
0
answers
2k
views
esp32 arduino wifi disconnect
<PubSubClient.h>
#include <Arduino_JSON.h>
#include <svm30.h>
// Replace the next variables with your SSID/Password combination
const char* ssid = "xxxx";
const char* password = "xxxx";
// Add your MQTT … client.connected()) {
Serial.print("Attempting MQTT connection...");
// Attempt to connect
if (client.connect("ESP32Client", mqtt_user, mqtt_password)) {
Serial.println("connected"); …