Source code for wifiunit

#!/usr/bin/env python
"""
.. module:: wifiunit.py
   :platform: Unix, Windows
   :synopsis: Ulyxes - an open source project to drive total stations and
        publish observation results.  GPL v2.0 license Copyright (C)
        2010- Zoltan Siki <siki.zoltan@epito.bme.hu>

.. moduleauthor:: Zoltan Siki <siki.zoltan@epito.bme.hu>
"""

from measureunit import MeasureUnit

[docs]class WifiUnit(MeasureUnit): """ Collect wifi information :param name: name of nmea unit (str), default 'Nmea Gnss' :param typ: type of nmea unit (str), default None :param wlan: wifi interface, default wlan0 """ def __init__(self, name='wlan', typ='wifi', wlan='wlan0'): """ constructor for wifi measure unit """ # call super class init super(WifiUnit, self).__init__(name, typ) self.wlan = wlan
[docs] @staticmethod def GetCapabilities(): """ Get instrument specific functions :returns: list of capabilities """ return ['WLAN']