There is a task: connect a ready-made smart device to the esp32 via wifi and control it, for example, such an outlet.
https://www.ebay.com/itm/204622810914?itmmeta=01HYN2QQ2QK1PFSRHPKB97KDHJ&hash=item2fa4784f22:g:eFIAAOSw~vtlqjNJ&itmprp=enc%3AAQAJAAAA4JW8A8%2B8VkrwREwGQZjioU12%2FvdEI8RixWg%2F3ZuZIhLnUIZt%2BHIA3wF9t4meEz8MiZ1jQQu1KTkR7XGkG95XJLuQH2SqXIXpGuPopbAIhFEC8eXStFc8R2emUO4By1pxqKaztGE1nCRMQv0%2Fv6A4jdO35xT1WNQOrm26Elzr5PKLDFQBthlw0CV7SbKmzzJ5KA%2B%2BYvjJQkAF1gberLVRDxzQeMOnj0J2kk4ulZbPGXsgkG%2FpturXLdXThHPLJkWH7BHW7y8ixJHtP6z5kKXswbWWgKijrKhv6OI3bmMsg92s%7Ctkp%3ABk9SR87x3qL1Yw
Is there a description of the protocol for exchanging information with such smart devices? How do you connect to them, read information, send commands?
Here, for example, is a description of working with a temperature and humidity sensor from Xiaomi using bluetooth
https://ndimension.design.blog/2021/12/16/reading-data-from-xiaomi-mi-temperature-and-humidity-monitor-2-lywsd03mmc/
https://github.com/keks51/lywsd03mmc-client
We scan available devices, connect to the ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6 service, read the characteristics of EBE0CCC1-7A0A-4B0C-8A1A-6FF2997DA3A6, decode the received data and get the temperature and humidity values.
What is the algorithm for working with such devices via wifi?
Алексей Снетков is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.