.waitforupgradecompletion Method

Function:

For the WA2000 Wi-Fi/BLE add-on module, waits for the firmware copying to complete and returns the result of the copying process. Firmware copying is initiated using wln.upgrade.

Syntax:

wln.waitforupgradecompletion()

Returns:

  • 0 — OK (completed successfully)
  • 1 — NG (failed)

See Also:

wln.setupgraderegion, wln.upgrade, wln.writeflashpage