Communicate ESP32 AP to Postman
Communicate ESP32 AP to Postman
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 201 times
Re: Communicate ESP32 AP to Postman
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,
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,
Re: Communicate ESP32 AP to Postman
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.
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: No registered users and 95 guests