MiApp_ConnectionMode Function

MiWi Development Environment

MiWi(TM) Development Environment Help
MiApp_ConnectionMode Function
C
void MiApp_ConnectionMode(
    BYTE Mode
);
Description

This is the primary user interface function for the application layer to configure the way that the host device accept connection request.

Preconditions

Protocol initialization has been done.

Parameters
Parameters 
Description 
BYTE Mode 
The mode to accept connection request. The privilege for those modes decreases gradually as defined. The higher privilege mode has all the rights of the lower privilege modes. The possible modes are
  • ENABLE_ALL_CONN Enable response to all connection request
  • ENABLE_PREV_CONN Enable response to connection request from device already in the connection table.
  • ENABLE_ACTIVE_SCAN_RSP Enable response to active scan only
  • DISABLE_ALL_CONN Disable response to connection request, including an acitve scan request.

 

Returns

None

Remarks

None

Example
// Enable all connection request
MiApp_ConnectionMode(ENABLE_ALL_CONN);
Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.