Add function to get ESP firmware version
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
1 parent
97d6dcd274
commit
8237ac2cb8
1 file changed
+5
@@ -305,6 +305,11 @@ int bwm_wifi_forward_down(void) {
|
||||
// esp_ota_begin erases the target partition and esp_ota_end finalizes + sets the
|
||||
// boot slot, so those get generous timeouts.
|
||||
// ---------------------------------------------------------------------------
|
||||
// Read the ESP's running firmware version string (APP_CMD_GET_VERSION_INFO).
|
||||
int bwm_esp_get_version(uint8_t *buf, uint16_t *buflen) {
|
||||
return bwm_cmd(BWM_CMD_GET_VERSION_INFO, NULL, 0, buf, buflen, 3000);
|
||||
}
|
||||
|
||||
int bwm_esp_ota_begin(uint32_t total_size) {
|
||||
// SILENCE ESP log forwarding for the OTA. With it on, the ESP's background
|
||||
// log broadcasts (WiFi/coex/BLE) interleave with the per-chunk acks across
|
||||
|
||||
Reference in new issue
Block a user