/ firmware / src / networking / update.h
update.h
 1  #pragma once
 2  #include <config.h>
 3  #include <stddef.h>
 4  
 5  namespace networking::update {
 6  
 7  bool applyFromSD(const char *path = config::ota::SD_PATH);
 8  bool applyFromURL(const char *url, const char *cert_pem = nullptr);
 9  bool canRollback();
10  bool rollback();
11  
12  void checkSDOnBoot();
13  
14  } // namespace networking::update
15