update firmware

This commit is contained in:
suaveolent 2024-01-29 12:02:30 +01:00
parent b55859e9b1
commit 687c9cefc6
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ You can integrate the library into your own project, or simply use it in the com
```
hoymiles-wifi [-h] --host HOST <command>
commands: {get-real-data-new, get-real-data-hms, get-real-data, get-config, network-info, app-information-data,app-get-hist-power, set-power-limit, set-wifi}
commands: {get-real-data-new, get-real-data-hms, get-real-data, get-config, network-info, app-information-data,app-get-hist-power, set-power-limit, set-wifi, firmware-update}
```
### Python code
@ -48,7 +48,7 @@ else:
- `app_get_hist_power()`: Retrieve historical power data
- `set_power_limit(power_limit)`: Set the power limit of the inverter (0-100%)
- `set_wifi(wifi_ssid, wifi_password)`: Configure the wifi network
- `firmware_update()`: Update to latest firmware
## Note

View File

@ -160,7 +160,7 @@ class Inverter:
request = CommandPB_pb2.CommandResDTO()
request.action = CMD_ACTION_FIRMWARE_UPGRADE
request.package_nub = 1
request.tid = 8806660
request.tid = int(time.time())
request.data = 'http://fwupdate.hoymiles.com/cfs/bin/2311/06/,1488725943932555264.bin\r'.encode('utf-8')
command = CMD_CLOUD_COMMAND_RES_DTO