Communicate ESP32 AP to Postman

arkayabt
Posts: 17
Joined: Fri Dec 06, 2019 6:14 am

Communicate ESP32 AP to Postman

Postby arkayabt » Fri Apr 21, 2023 6:32 am

I want to develop home automation project for that i want to test whether my esp32 device responding to my send commands. For that i have json file that i attach below. I want to test this using postman. This is my link http://192.168.4.1/prov in postman using i want to send command and receive responsive command its connection to esp32 AP is made successfully. Where i have to use that responsive command in my code? I am bit confused which protocol i should use. in future i also want to use MQTT to send my command to esp32. If possible Kindly guide which example code and give me a road map for this. As i was not able to attach json file i converted in to word file and attaches here with "Board Prov postman JSON" name and excel file is for the command.
Attachments
Board Prov postman JSON.docx
(13.62 KiB) Downloaded 208 times
Relay Board Command Set.xlsx
(14.72 KiB) Downloaded 200 times

ves011
Posts: 20
Joined: Fri Oct 07, 2022 2:31 pm

Re: Communicate ESP32 AP to Postman

Postby ves011 » Fri Apr 21, 2023 3:02 pm

Not sure which Postman you want to use here. The only one i know is the test tool, which i dont know if it helps.
MQTT works fine. You get a several examples under protocols/mqtt folder in esp-idf.
I use for my home automation mosquitto under Linux with esp32 mqtt client implementation,

arkayabt
Posts: 17
Joined: Fri Dec 06, 2019 6:14 am

Re: Communicate ESP32 AP to Postman

Postby arkayabt » Sat Apr 22, 2023 4:45 am

hi ves011,
Thasks for your replay. I am talking about https://www.postman.com API testing tool. Which http example i have to use in my esp32 AP mode (eg.client,server). and do i have to parse json file in my code or i just have to use in postman to just send command to esp32. If i have to use it in my code how do i parse it and write my response to that in my code.Like if i am sending "AA BB 11 XX XX XX XX XX XX BB AA" I should get responce "AA BB 11 XX XX XX XX XX XX BB AA" where 6 time XX is my AP SSID.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 91 guests