Samraksh eMote .NOW
Configure Method (MACBase)
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: Visual Basic (Declaration) Language Filter: Visual Basic (Usage) Language Filter: C# Language Filter: C++/CLI
Visual Basic (Declaration)
Visual Basic (Usage)
C#
C++/CLI

Samraksh.eMote.Net Namespace > MACBase Class : Configure Method

MAC configuration to use
Method to call when message received
Method to call when neighborhood changed
Configure the MAC object. Must be called before a call to get instance
Syntax

- Visual Basic
- C#
- C++/CLI

    'Declaration

    Public Shared Function Configure( _
       ByVal config As MacConfiguration, _
       ByVal receiveCallback As ReceiveCallBack, _
       ByVal neighborChangeCallback As NeighborhoodChangeCallBack _
    ) As DeviceStatus

    'Usage

    Dim config As MacConfiguration
    Dim receiveCallback As ReceiveCallBack
    Dim neighborChangeCallback As NeighborhoodChangeCallBack
    Dim value As DeviceStatus

    value = MACBase.Configure(config, receiveCallback, neighborChangeCallback)

    public static DeviceStatus Configure(
       MacConfiguration config,
       ReceiveCallBack receiveCallback,
       NeighborhoodChangeCallBack neighborChangeCallback
    )

    public:
    static DeviceStatus Configure(
       MacConfiguration^ config,
       ReceiveCallBack^ receiveCallback,
       NeighborhoodChangeCallBack^ neighborChangeCallback
    )

#### Parameters

config
  MAC configuration to use
receiveCallback
  Method to call when message received
neighborChangeCallback
  Method to call when neighborhood changed

#### Return Value

Status of operation
Requirements

Target Platforms: eMote .NOW

See Also

#### Reference

MACBase Class
MACBase Members

Send Feedback