# WM_SetBeaconIndication

## Syntax

      #include <nitro/wm.h>

      WMErrCode WM_SetBeaconIndication( WMCallbackFunc callback, u16 flag );

## Arguments

callback | Designates the callback function to call when the asynchronous process completes. This callback is called from within the interrupt handler.
flag | Flag that indicates valid or invalid. Set to 0 or 1. When set to 1, it indicates valid.

## Return Values

Returns the results of the `WMErrCode` enumerated type process.

## Description

Switches the beacon transmission indication between the enabled and the disabled state. This function is only executable when the WM is in the `IDLE` state. If the return value is `WM_ERRCODE_OPERATING`, a callback is generated after the enable or disable switching process is complete.

## See Also

``WM_StartParent`, `WM_StartConnect`, `WM_SetIndCallback``

## Revision History

2005/06/08 Added statement about callback being called from the interrupt handler.
2005/03/02 Added statement about range that can be specified with the flag argument.
2004/10/22 Changed type of return value.
2004/08/02 Standardized structure names.
2004/07/29 Added to Description
2004/07/23 Initial version

CONFIDENTIAL