.Associationstate R/O Property
|Top Previous Next|
After the successful association, which is initiated through the wln.associate method, the value of this property changes to 1- PL_WLN_ASSOCIATED. The value is reset back to 0- PL_WLN_NOT_ASSOCIATED if disassociation occurs (on_wln_event will be generated too).
Disassociation can be induced through the wln.disassociate method or forced by the access point. Disassociation will also happen if the access point goes offline or out of range, or if the GA1000 is powered down, reset, disconnected, or malfunctions.
After the Wi-Fi interface succeeds in creating its own ad-hoc network (see wln.networkstart), the value of this property becomes 2- PL_WLN_OWN_NETWORK. The value is reset back to 0- PL_WLN_NOT_ASSOCIATED when the ad-hoc network is terminated with wln.networkstop.