esp-homekit-demo icon indicating copy to clipboard operation
esp-homekit-demo copied to clipboard

Restarting the service from the program

Open pr200sd opened this issue 3 years ago • 4 comments

Good day.

Is it possible to orbinize the restart of the service, without restarting esp32, for example, after erasing the data, I want to be able to pair with the phone again, now I am doing a power reset for this.

pr200sd avatar Jun 03 '21 09:06 pr200sd

No, it is not possible at the moment. Implementation is not hard, but I couldn't find any practical use case for this.

maximkulkin avatar Jun 03 '21 15:06 maximkulkin

Got it, thanks for the answer. My use case is as follows: after removing the accessory on the phone and erasing the data in esp32, a new device cannot be added without restarting esp32.

pr200sd avatar Jun 04 '21 05:06 pr200sd

Then restart the device.

maximkulkin avatar Jun 05 '21 03:06 maximkulkin

There are no problems to reboot the device, but my esp is used as a gateway for a multichannel relay and controls channels via modbus, https://youtu.be/7YfrBtO3Dos?t=144 and in some cases information will be lost and the relay will be reset. In principle, I have already taken into account this point and now all states are remembered before rebooting, so there are no problems.

pr200sd avatar Jun 05 '21 04:06 pr200sd