文档介绍:Copyright 2014, Nordic Semiconductor ASA
Nordic Semiconductor Sniffer API Guide
iffer version , and make sure it connects to the
firmware.
See the Sniffer User Guide included with the nRF Sniffer for more information.
Using the Sniffer API
Getting Started
1. Install dependencies.
2. Include the SnifferAPI folder in your Python project.
3. Import the API with
from SnifferAPI import Sniffer
4. Instantiate the Sniffer class with .
mySniffer = Sniffer()
5. Start the Sniffer with
()
is an example program with explanations in the comments.
Overview
The API consists of 5 classes in 3 files: The Sniffer class in , the DeviceList
and Device classes in , and the Packet and BlePacket classes in . TheCopyright 2014, Nordic Semiconductor ASA
exceptions in are also part of the API. The entry point for the API is the
Sniffer class (retrieve packets and devices through the methods in Sniffer). The last pages
of this document (and also the file) contain a complete
documentation of the API.
An overview of the levels below the Sniffer module
Object/Module hierarchy
During normal operation, the Sniffer object interfaces only to the SnifferCollector