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
Connect ESP32 to Azure IOT hub through AT Command
-
- Posts: 5
- Joined: Sun Aug 04, 2019 6:28 pm
Connect ESP32 to Azure IOT hub through AT Command
Last edited by zafarpatel7 on Wed Dec 25, 2019 6:37 am, edited 1 time in total.
-
- Posts: 5
- Joined: Sun Aug 04, 2019 6:28 pm
Re: Connect ESP32 Azure IOT hum through AT Command
Does no one have the answer to this question ?????
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: Connect ESP32 Azure IOT hum through AT Command
Well, technically you didn't ask a question (aside from if anyone else did this, in which case the silence probably is your answer).
-
- Posts: 5
- Joined: Sun Aug 04, 2019 6:28 pm
Re: Connect ESP32 to Azure IOT hub through AT Command
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
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
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: Connect ESP32 to Azure IOT hub through AT Command
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.
-
- Posts: 5
- Joined: Sun Aug 04, 2019 6:28 pm
Re: Connect ESP32 to Azure IOT hub through AT Command
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 .
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: Connect ESP32 to Azure IOT hub through AT Command
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: burtrum and 139 guests