![]() |
|
|
#16 (permalink) | |
|
perlmonk
Join Date: Jul 2004
Location: canadia
Posts: 57
|
Quote:
I'm just about finished the new interface and will be releasing a new version this week. |
|
|
|
|
|
|
#17 (permalink) |
|
perlmonk
Join Date: Jul 2004
Location: canadia
Posts: 57
|
I have released a new version of NetStumbler::NS1 today (http://www.perldev.org/project.cgi?pid=6). I have changed the interface to OO, added two new features for extra data to be returned (IP info, and all GPS entries), and created POD documentation in the NS1.pm file.
Here is some working code: Code:
use NetStumbler::NS1; $ns1 = NetStumbler::NS1->new(); $ns1->set( ip_info => 1 ); @nsData = $ns1->parseNS1( "filename.ns1" ); Code:
[
'Latitude',
'Longitude',
'SSID',
'Type',
'BSSID',
'First Seen',
'Last Seen',
'SNR',
'Signal',
'Noise',
'Flags',
'Name',
'Channels',
'Beacon',
'Data Rate',
'Last Channel',
(--- if ip_info ---)
'IP Address',
'Subnet',
'Subnet Mask',
(--- if full_gps ---) - APDATA, new array
[
[
'Time',
'Signal',
'Noise',
'Location Source',
(--- if full_gps ---) - GPSDATA, new array
[
'Latitude',
'Longitude',
'Altitude',
'NumSats',
'Speed',
'Track',
'MagVariation',
'Hdop'
]
],
[
[
Next APDATA/GPSDATA entry ...
]
],
[
[
Next APDATA/GPSDATA entry ...
]
]
],
[
Next APINFO entry ...
]
]
Code:
[ 'Latitude', 'Longitude', 'SSID', 'Type', 'BSSID', 'First Seen', 'Last Seen', 'SNR', 'Signal', 'Noise', 'Flags', 'Name', 'Channels', 'Beacon', 'Data Rate', 'Last Channel', (--- if ip_info ---) 'IP Address', 'Subnet', 'Subnet Mask', ], [ Next entry ... ], [ Next entry ... ] |
|
|
|