Page 1 of 1

Communication with AMQP protocol and communication with HTTP protocol with ESP32-WROOM-32D (4MB)

Posted: Mon Oct 05, 2020 4:38 am
by NY20200803
Transmission format JSON
Currently transmission protocol MQTT

this
Currently, I would like to replace it with the transmission protocol AMQT or HTTP protocol.
============
What should I do for this?
please tell me.
============
Hope is Arduino.
If it is not possible, you can use other software.
However, it is necessary to be able to write software only serially like Arduino.


Program example (This program is operating normally after confirming transmission and reception on WINDOWS AZURE)


#include <stdio.h>
#include <String.h>
#include <WiFi.h>
#include "Esp32MQTTClient.h"

loop ()
{
"Omitted"

Char A [150]


snprintf (A, 150, "{\" NO1 \ ": \" 202009 \ ", \" NO2 \ ":% 4d, \" NO3 \ ":% 4d, \":% 4d, \ "NO4 \": \ "NG \"} ", tempreature, sumtime, flow, pressure, Status_);



if (Esp32MQTTClient_SendEvent (& A [0])) {}

"Omitted"
}

Re: Communication with AMQP protocol and communication with HTTP protocol with ESP32-WROOM-32D (4MB)

Posted: Thu Oct 08, 2020 8:31 am
by NY20200803
It seems to be related to this case Share.

https://docs.microsoft.com/en-us/azure/ ... rt-numbers

Re: Communication with AMQP protocol and communication with HTTP protocol with ESP32-WROOM-32D (4MB)

Posted: Wed Oct 21, 2020 11:13 pm
by NY20200803
If you have any tips or related libraries on this subject, please let me know.

Arduino Library
Can "AzureIOTprotocol_HTTP" etc. be used in this case? If you can use it with ESP32, please tell me how to use it or hints on how to use it.

Re: Communication with AMQP protocol and communication with HTTP protocol with ESP32-WROOM-32D (4MB)

Posted: Sun Nov 01, 2020 1:29 am
by NY20200803
Current status of the problem
What should I do to solve the next problem?
please tell me.


I don't know how to use AZURE IOT HUB


"AZUREIOTPROTOCOL_HTTP"

https://www.arduinolibraries.info/libra ... tocol_http

Even if I download the above, I do not understand the contents of the header file that was there
I don't know how to transfer
I don't know how to communicate via HTTP.
Contents
Even if I download it, I do not understand the contents of the following source

#ifndef AZUREIOTPROTOCOLHTTP_H
#define AZUREIOTPROTOCOLHTTP_H



The above is a program for your company's ESP32, so
I feel like your company knows how to use it,
how is it?






Official sample
iothub_ll_telemetry_sample
→ Cannot compile
It is said that blob.h does not exist
A person's GITHUB presented a solution
It is the same in practice.

From here

https://github.com/Azure/azure-iot-pal-arduino/issues/9