Page 1 of 1

Connect ESP32 to Azure IOT hub through AT Command

Posted: Sun Dec 22, 2019 7:18 am
by zafarpatel7
Hello All

I am using ESP32 in my product with Renesas as a Host Controller with AT command mode, and Sever is Azure IoT Hub.

anyone have tried this type of design, please guide me, I tried with Azure SDK it is working but I want to try with AT command mode

Please help me

Regards
Zafar

Re: Connect ESP32 Azure IOT hum through AT Command

Posted: Tue Dec 24, 2019 6:44 am
by zafarpatel7
Does no one have the answer to this question ????? :(

Re: Connect ESP32 Azure IOT hum through AT Command

Posted: Tue Dec 24, 2019 10:03 am
by ESP_Sprite
Well, technically you didn't ask a question (aside from if anyone else did this, in which case the silence probably is your answer).

Re: Connect ESP32 to Azure IOT hub through AT Command

Posted: Wed Dec 25, 2019 6:53 am
by zafarpatel7
I want to connect my ESP32 Module with Azure IOT hub using AT command, so any sample code or application is available for that

I tried with Arduino IDE it is working, but I want to use through AT command

ESP32-WROOM-32_AT_Bin_V2.0 -> this version I am using

AT version:1.2.0.0(6fe4345 - Jun 27 2019 05:39:23)
SDK version:v3.2-127-gddbce78
compile time:Jun 27 2019 12:08:01
Bin version:1.2.0(WROOM-32)

I just want to know - how-to steps to set up the client connection to Azure IoT hub
---------------------------------------------------------------------------------------------------
AT
OK
AT+CIFSR
+CIFSR:STAIP,"192.168.0.104"
+CIFSR:STAMAC,"4c:11:ae:70:f9:40"

OK
AT+CIPMUX=1

OK
AT+CIPSERVER=1,8989

OK
AT+CIPSSLCCONF=1,3,0,0

OK
AT+CIPSTART=0,"SSL","104.40.49.44",443 ->104.40.49.44 - this my Azure iot hub ip(host name ip)
0,CONNECT

OK
AT+CIPSEND=0,6

OK

>
busy p...

Recv 6 bytes

SEND OK
-----------------------------------------------------------------------------------------------
I am able to connect Host IP - but I think after that "DeviceId" and "SharedAccessKey" is also required, but how I can send to Azure , any spesifct json formate is required

Re: Connect ESP32 to Azure IOT hub through AT Command

Posted: Thu Dec 26, 2019 4:30 am
by ESP_Sprite
Seems you are connected to a HTTPS webserver there. You'll need to implement a http client to properly communicate with it, then add on the layer that does whatever Azure needs. I'll be frank with you: If you're already stumped here, you're probably better off sticking with the Arduino IDE.

Re: Connect ESP32 to Azure IOT hub through AT Command

Posted: Sat Dec 28, 2019 6:14 pm
by zafarpatel7
Yes I think you are right, I am going to change my Firmware Architecture and instant of using AT command SDK I switch to Arduino-esp32 or ESP-IDF. Could you please suggest which one is better .

Re: Connect ESP32 to Azure IOT hub through AT Command

Posted: Sun Dec 29, 2019 2:11 am
by ESP_Sprite
I can't, as they're probably both suitable for the task (especially given that you can use most esp-idf things in Arduino and can import Arduino into esp-idf). It mostly depends on what you're comfortable with, and which libraries you want to use.