mirror of
https://github.com/suaveolent/hoymiles-wifi.git
synced 2024-09-20 03:10:11 +00:00
update firmware
This commit is contained in:
parent
b55859e9b1
commit
687c9cefc6
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user