How are control APIs in general made? What exactly happens when an API call is made? How can I make custom API for a generic ESP 32 module?
I believe you are not asking in context of specifically the Bolt Cloud.
If my guess is right, then the following link will help you get the answer to your first questions.
As for making custom API for generic ESP32 module, you would have to look up and learn the following technologies, and how to integrate them.
- MQTT broker
- Web servers (Python Flask is a web server).
- Writing MQTT client side code for the ESP32 and the Flask server.
- Setting server routes for the web server, which will send commands to the MQTT broker, and receive data fro the MQTT broker.
Since at Inventrom Pvt LTD, we strive to make development easy for IoT developers, we have already done most of the work related to these technologies. I am not at liberty to reveal exactly how we have used these technologies to setup our API, but I do believe that you should be able to get enough data from the internet regarding what I mentiond to be able to setup your own API server.
Thanks for the above guidance.
Could you please share any reference of the MQTT broker and connecting it to a esp8266.
I want to have communication between a esp8266 and a local machine.
Thanks a lot. This is something far beyond I have imagined.
This should get to to where you need to be.