|
Bluetooth Framework C++ Edition
|
The Bluetooth LE packets sniffer. More...
#include <wclBluetooth.h>
Public Member Functions | |
| CwclBleSniffer () | |
| Creates new BLE sniffer component. | |
| virtual | ~CwclBleSniffer () |
| Frees the component. | |
| int | Start (const tstring &DevicePath, const unsigned char Channel) |
| Starts capturing the BLE packets. | |
| int | Start (const unsigned char Channel) |
| Starts capturing the BLE packets. | |
| int | Stop () |
| Stops capturing the BLE packets. | |
| bool | GetActive () const |
| Gets the sniffer's status. | |
| __declspec (property(get=GetActive)) bool Active | |
| Gets the sniffer's status. | |
| unsigned char | GetChannel () const |
| Gets the radio channel. | |
| __declspec (property(get=GetChannel)) unsigned char Channel | |
| Gets the radio channel. | |
| tstring | GetDevicePath () const |
| Gets the current device's path. | |
| __declspec (property(get=GetDevicePath)) tstring DevicePath | |
| Gets the current device's path. | |
| wclMessageProcessingMethod | GetMessageProcessing () const |
| Gets a message processing method used by the Sniffer. | |
| void | SetMessageProcessing (const wclMessageProcessingMethod Value) |
| Sets a message processing method used by the Sniffer. | |
| __declspec (property(get=GetMessageProcessing, put=SetMessageProcessing)) wclMessageProcessingMethod MessageProcessing | |
| Gets and sets a message processing method used by the Sniffer. | |
| __event void | OnAdvDirectIndReceived (void *Sender, const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 AdvA, const __int64 TargetA) |
The event fires when the ADV_DIRECT_IND PDU received. | |
| __event void | OnAdvIndReceived (void *Sender, const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 AdvA, const unsigned char *const AdvData, const unsigned char AdvDataLen) |
The event fires when the ADV_IND PDU received. | |
| __event void | OnAdvNonConnIndReceived (void *Sender, const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 AdvA, const unsigned char *const AdvData, const unsigned char AdvDataLen) |
The event fires when the ADV_NONCONN_IND PDU received. | |
| __event void | OnAdvScanIndReceived (void *Sender, const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 AdvA, const unsigned char *const AdvData, const unsigned char AdvDataLen) |
The event fires when the ADV_SCAN_IND PDU received. | |
| __event void | OnConnectIndReceived (void *Sender, const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 InitA, const __int64 AdvA, const wclBleSnifferLlData &LlData) |
The event fires when the CONNECT_IND PDU received. | |
| __event void | OnScanReqReceived (void *Sender, const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 ScanA, const __int64 AdvA) |
The event fires when the SCAN_REQ PDU received. | |
| __event void | OnScanRspReceived (void *Sender, const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 AdvA, const unsigned char *const ScanRspData, const unsigned char ScanRspDataLen) |
The event fires when the SCAN_RSP PDU received. | |
| __event void | OnRawPacketReceived (void *Sender, const wclBluetoothLePacketHeader &Header, const unsigned char *const Payload, const unsigned short Size) |
| The event fires when a Bluetooth LE packet captured. | |
| __event void | OnStarted (void *Sender) |
| The event fires when the Sniffer was successfully started. | |
| __event void | OnStopped (void *Sender) |
| The event fires when the Sniffer was successfully stopped. | |
Protected Member Functions | |
| virtual void | MessageReceived (const CwclMessage *const Message) |
| The method called when a new notification message received. | |
| virtual void | DoAdvDirectIndReceived (const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 AdvA, const __int64 TargetA) |
Fires the OnAdvDirectIndReceived event. | |
| virtual void | DoAdvIndReceived (const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 AdvA, const unsigned char *const AdvData, const unsigned char AdvDataLen) |
Fires the OnAdvIndReceived event. | |
| virtual void | DoAdvNonConnIndReceived (const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 AdvA, const unsigned char *const AdvData, const unsigned char AdvDataLen) |
Fires the OnAdvNonConnIndReceived event. | |
| virtual void | DoAdvScanIndReceived (const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 AdvA, const unsigned char *const AdvData, const unsigned char AdvDataLen) |
Fires the OnAdvScanIndReceived event. | |
| virtual void | DoConnectIndReceived (const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 InitA, const __int64 AdvA, const wclBleSnifferLlData &LlData) |
Fires the OnConnectIndReceived event. | |
| virtual void | DoScanReqReceived (const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 ScanA, const __int64 AdvA) |
Fires the OnScanReqReceived event. | |
| virtual void | DoScanRspReceived (const wclBluetoothLeAdvertisingPduHeader &PduHeader, const __int64 AdvA, const unsigned char *const ScanRspData, const unsigned char ScanRspDataLen) |
Fires the OnScanRspReceived event. | |
| virtual void | DoRawPacketReceived (const wclBluetoothLePacketHeader &Header, const unsigned char *const Payload, const unsigned short Size) |
Fires the OnRawPacketReceived event. | |
| virtual void | DoStarted () |
Fires the OnStarted event. | |
| virtual void | DoStopped () |
Fires the OnStopped event. | |
The Bluetooth LE packets sniffer.