User manual

Table of Contents
1. Introduction ............................................................................................................... 1
SNAP and SNAPpy ............................................................................................................................ 1
Portal and SNAP Connect 3.x ........................................................................................................... 1
The SNAP Wireless Sniffer................................................................................................................ 1
Navigang the SNAP Documentaon .............................................................................................. 1
Start with the “SNAP Primer .................................................................................................... 1
Next look at an “Evaluaon Kit Users Guide” ........................................................................... 1
About This Manual ........................................................................................................................... 2
SNAP Documentaon by Category .................................................................................................. 3
When the Manuals Are Not Enough ................................................................................................ 3
2. SNAP Overview .......................................................................................................... 4
Key features of SNAP ....................................................................................................................... 4
RPC ................................................................................................................................................... 4
SNAPpy Scripng .............................................................................................................................. 5
SNAPpy Examples............................................................................................................................. 5
Portal Scripng ................................................................................................................................. 5
3. SNAPpy The Language ............................................................................................. 7
4. SNAPpy versus Python.............................................................................................. 13
Modules ......................................................................................................................................... 13
Variables ........................................................................................................................................ 13
Funcons ........................................................................................................................................ 13
Data Types...................................................................................................................................... 13
Keywords........................................................................................................................................ 14
Operators ....................................................................................................................................... 14
Slicing ............................................................................................................................................. 14
Concatenaon ................................................................................................................................ 14
Subscripng.................................................................................................................................... 15
Expressions .................................................................................................................................... 15
Python Built-ins .............................................................................................................................. 15
Print ................................................................................................................................................ 15
5. SNAPpy Application Development ............................................................................ 17
Event-Driven Programming ........................................................................................................... 17
SNAP Hooks .................................................................................................................................... 19