.Boot Method

Top  Previous  Next

 

Function:

Boots up the Wi-Fi interface, which involves sending to the Wi-Fi hardware a firmware file for its embedded processor.

Syntax:

wln.boot(offset as dword) as ok_ng

Returns:

One of ok_ng constants:

0- OK: completed successfully.

1- NG: boot failed.

See Also:

Booting Up the Hardware

 


Part

Description

offset

Offset of the wln_fwar.bin file within the compiled binary of your project. The offset is obtained from the romfile.offset read-only property.

Details

The wln_fwar.bin file must be present in your project as a binary resource file. To obtain correct offset value, open the file first: romfile.open("wln_fwar.bin"). After that, do wln.boot(romfile.offset).

The boot process is very fast and will be completed in less than 0.4 second.

This method will return 0- OK when the boot completes successfully. At the same time, the wln.enabled will become 1- YES. The method will return 1- NG if the boot fails, in which case the wln.enabled will remain at 0- NO. This will happen if the Wi-Fi hardware is not connected properly, not powered, malfunctions, or is operational already.