Chat freely about anything...

User avatar
By AverageGuy
#90808 I have an app running that needs to be reset occasionally. It is running OTA and TelnettSpy so I have some remote access to it. Is there a way that the board can reset itself? Some low level function?

Baring that, is there a way to upload the compiled binary using OTA from a Linux command line? I normally use the Arduino IDE to upload. I haven't attempted to do OTA with Platform IO yet, so I'd guess there may be an answer there somehow.

Thanks,
Jim.
User avatar
By davydnorris
#90811 You've mentioned a few things here:
- guessing you're using Arduino to program the unit?
- you're using Platformio as well?

Can you give us more details on exactly what your set up is?

In short, yes you can easily reset an ESP in code (for Arduino see the previous reply to your post) - but you would need to program or configure a remote command to trigger the reset. And yes OTA can be easily configured, and Platformio will support OTA, but once again you'll need to program or configure it, and it's a bit more fiddly with Arduino programs.
User avatar
By AverageGuy
#90815 I have both installed but I use the Arduino IDE more 'cause I'm more experienced with it and I'm not as comfortable with PlatformIO. I don't have a problem with programming the device to get it to accept a remote command. I already subscribe to a few mqtt commands so adding another won't be a problem. It's a garage door controller that controls two garage doors. Senses when they are open after dark and sends out an announcement to that effect. If by 10pm they haven't been closed the program closes them. It also senses if the garage light has been left on and around 8pm announces that fact.
Thanks,
Jim