# WM_SetBeaconIndication

## C Specification

      #include <nitro/wm.h>

      WMErrCode WM_SetBeaconIndication(
                  WMCallbackFunc  callback ,
                  u16             flag );

## 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.

## Arguments

`callback` | The callback function to call when the asynchronous process completes.
`flag` | 0: Disabled 1: Enabled

## Return Values

Returns the process result as a `WMErrCode` enumerated type.

## See Also

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

## Revision History

10/22/2004 Changed return value types
08/02/2004 Standardized structure names
07/29/2004 Added descriptions
07/23/2004 Initial Version