ESP32 over the air programming by ESP32
- function
GithubUrl: https://raw.githubusercontent.com/<Your name>/<Your repo>/<Your branch>/<Your file path>/<Your file name>
.
example: https://raw.githubusercontent.com/Hsun1031/ESP32GithubOTA/master/example/bin/firmware.bin
Github Token: ghp_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// not use token.
ESP32PrivateGithubOTA();
// use token.
ESP32PrivateGithubOTA(char *token);
/**
* @brief Update spiffs data.
*
* @param spiffsUrl Github url https://raw.githubusercontent.com/<Your name>/<Your repo>/<Your branch>/<Your file path>/<Your file name>.
* @param token Github Token.
* @return true Update Susses.
* @return false Update or Http client failed.
*/
int spiffsOTA (const char *spiffsUrl, const char *token);
/**
* @brief Update spiffs data.
*
* @param spiffsUrl Github url https://raw.githubusercontent.com/<Your name>/<Your repo>/<Your branch>/<Your file path>/<Your file name>.
* @param isPublic Github is Public.
* @return true Update Susses.
* @return false Update or Http client failed.
*/
int spiffsOTA (const char *spiffsUrl, bool isPublic = 0);
/**
* @brief Update ESP32 firmware.
*
* @param firmwareUrl Github url https://raw.githubusercontent.com/<Your name>/<Your repo>/<Your branch>/<Your file path>/<Your file name>.
* @param token Github Token.
* @return true Update Susses.
* @return false Update or Http client failed.
*/
int firmwareOTA(const char *firmwareUrl, const char *token);
/**
* @brief Update ESP32 firmware.
*
* @param firmwareUrl Github url https://raw.githubusercontent.com/<Your name>/<Your repo>/<Your branch>/<Your file path>/<Your file name>.
* @param isPublic Github is Public.
* @return true Update Susses.
* @return false Update or Http client failed.
*/
int firmwareOTA(const char *firmwareUrl, bool isPublic = 0);