
import network

# Init wlan module in Download mode.
wlan = network.WINC(True)
#print("Firmware version:", wlan.fw_version())

# Start the firmware update process.
wlan.fw_update()
#print("Firmware version:", wlan.fw_version())


import network

# Init wlan module in Download mode.
wlan = network.WINC(mode=network.WINC.MODE_FIRMWARE)
print("Firmware version:", wlan.fw_version())

# Start the firmware update process.
wlan.fw_update()
print("Firmware version:", wlan.fw_version())

Fix WINC fw update script.
Fix WINC fw update script.

  
  import network
  
  # Init wlan module in Download mode.
- wlan = network.WINC(True)
+ wlan = network.WINC(mode=network.WINC.MODE_FIRMWARE)
- #print("Firmware version:", wlan.fw_version())
+ print("Firmware version:", wlan.fw_version())
  
  # Start the firmware update process.
  wlan.fw_update()
- #print("Firmware version:", wlan.fw_version())
+ print("Firmware version:", wlan.fw_version())
  
Fix WINC fw update script.
## Code Before:

import network

# Init wlan module in Download mode.
wlan = network.WINC(True)
#print("Firmware version:", wlan.fw_version())

# Start the firmware update process.
wlan.fw_update()
#print("Firmware version:", wlan.fw_version())

## Instruction:
Fix WINC fw update script.
## Code After:

import network

# Init wlan module in Download mode.
wlan = network.WINC(mode=network.WINC.MODE_FIRMWARE)
print("Firmware version:", wlan.fw_version())

# Start the firmware update process.
wlan.fw_update()
print("Firmware version:", wlan.fw_version())
