Connect ESP32 to Azure IOT hub through AT Command

zafarpatel7
Posts: 5
Joined: Sun Aug 04, 2019 6:28 pm

Connect ESP32 to Azure IOT hub through AT Command

Postby zafarpatel7 » Sun Dec 22, 2019 7:18 am

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
Last edited by zafarpatel7 on Wed Dec 25, 2019 6:37 am, edited 1 time in total.

zafarpatel7
Posts: 5
Joined: Sun Aug 04, 2019 6:28 pm

Re: Connect ESP32 Azure IOT hum through AT Command

Postby zafarpatel7 » Tue Dec 24, 2019 6:44 am

Does no one have the answer to this question ????? :(

ESP_Sprite
Posts: 9580
Joined: Thu Nov 26, 2015 4:08 am

Re: Connect ESP32 Azure IOT hum through AT Command

Postby ESP_Sprite » Tue Dec 24, 2019 10:03 am

Well, technically you didn't ask a question (aside from if anyone else did this, in which case the silence probably is your answer).

zafarpatel7
Posts: 5
Joined: Sun Aug 04, 2019 6:28 pm

Re: Connect ESP32 to Azure IOT hub through AT Command

Postby zafarpatel7 » Wed Dec 25, 2019 6:53 am

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

ESP_Sprite
Posts: 9580
Joined: Thu Nov 26, 2015 4:08 am

Re: Connect ESP32 to Azure IOT hub through AT Command

Postby ESP_Sprite » Thu Dec 26, 2019 4:30 am

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.

zafarpatel7
Posts: 5
Joined: Sun Aug 04, 2019 6:28 pm

Re: Connect ESP32 to Azure IOT hub through AT Command

Postby zafarpatel7 » Sat Dec 28, 2019 6:14 pm

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 .

ESP_Sprite
Posts: 9580
Joined: Thu Nov 26, 2015 4:08 am

Re: Connect ESP32 to Azure IOT hub through AT Command

Postby ESP_Sprite » Sun Dec 29, 2019 2:11 am

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.

Who is online

Users browsing this forum: No registered users and 331 guests