# WM_SetBeaconIndication

## C Specification

      #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

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

CONFIDENTIAL