_ScanActionResult.py
Go to the documentation of this file.
00001 """autogenerated by genpy from wpa_supplicant_node/ScanActionResult.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 import wpa_supplicant_node.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class ScanActionResult(genpy.Message):
00013   _md5sum = "7dce3f6a8b7fe671e6ddde0490d0c833"
00014   _type = "wpa_supplicant_node/ScanActionResult"
00015   _has_header = True #flag to mark the presence of a Header object
00016   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017 
00018 Header header
00019 actionlib_msgs/GoalStatus status
00020 ScanResult result
00021 
00022 ================================================================================
00023 MSG: std_msgs/Header
00024 # Standard metadata for higher-level stamped data types.
00025 # This is generally used to communicate timestamped data 
00026 # in a particular coordinate frame.
00027 # 
00028 # sequence ID: consecutively increasing ID 
00029 uint32 seq
00030 #Two-integer timestamp that is expressed as:
00031 # * stamp.secs: seconds (stamp_secs) since epoch
00032 # * stamp.nsecs: nanoseconds since stamp_secs
00033 # time-handling sugar is provided by the client library
00034 time stamp
00035 #Frame this data is associated with
00036 # 0: no frame
00037 # 1: global frame
00038 string frame_id
00039 
00040 ================================================================================
00041 MSG: actionlib_msgs/GoalStatus
00042 GoalID goal_id
00043 uint8 status
00044 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00045 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00046 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00047                             #   and has since completed its execution (Terminal State)
00048 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00049 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00050                             #    to some failure (Terminal State)
00051 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00052                             #    because the goal was unattainable or invalid (Terminal State)
00053 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00054                             #    and has not yet completed execution
00055 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00056                             #    but the action server has not yet confirmed that the goal is canceled
00057 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00058                             #    and was successfully cancelled (Terminal State)
00059 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00060                             #    sent over the wire by an action server
00061 
00062 #Allow for the user to associate a string with GoalStatus for debugging
00063 string text
00064 
00065 
00066 ================================================================================
00067 MSG: actionlib_msgs/GoalID
00068 # The stamp should store the time at which this goal was requested.
00069 # It is used by an action server when it tries to preempt all
00070 # goals that were requested before a certain time
00071 time stamp
00072 
00073 # The id provides a way to associate feedback and
00074 # result message with specific goal requests. The id
00075 # specified must be unique.
00076 string id
00077 
00078 
00079 ================================================================================
00080 MSG: wpa_supplicant_node/ScanResult
00081 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00082 #int32 SUCCESS = 0
00083 #int32 TOO_MANY_SSIDS = 1
00084 #int32 TOO_MANY_CHANNELS = 2
00085 #int32 SCAN_REQUEST_FAILED = 3
00086 #int32 SCAN_REQUEST_TIMED_OUT = 4
00087 #
00088 bool success
00089 Bss[] bss
00090 
00091 ================================================================================
00092 MSG: wpa_supplicant_node/Bss
00093 time stamp
00094 string ssid
00095 uint8[6] bssid
00096 int32 frequency # In MHz
00097 int16 beacon_interval
00098 int16 capabilities
00099 int32 quality
00100 int32 noise
00101 int32 level
00102 SecurityProperties wpa
00103 SecurityProperties rsn
00104 
00105 #InformationElement []ies
00106 #InformationElement []beacon_ies
00107 # flags
00108 # tsf
00109 # age
00110 
00111 ================================================================================
00112 MSG: wpa_supplicant_node/SecurityProperties
00113 string[] key_mgmt
00114 string[] group
00115 string[] pairwise
00116 
00117 """
00118   __slots__ = ['header','status','result']
00119   _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','wpa_supplicant_node/ScanResult']
00120 
00121   def __init__(self, *args, **kwds):
00122     """
00123     Constructor. Any message fields that are implicitly/explicitly
00124     set to None will be assigned a default value. The recommend
00125     use is keyword arguments as this is more robust to future message
00126     changes.  You cannot mix in-order arguments and keyword arguments.
00127 
00128     The available fields are:
00129        header,status,result
00130 
00131     :param args: complete set of field values, in .msg order
00132     :param kwds: use keyword arguments corresponding to message field names
00133     to set specific fields.
00134     """
00135     if args or kwds:
00136       super(ScanActionResult, self).__init__(*args, **kwds)
00137       #message fields cannot be None, assign default values for those that are
00138       if self.header is None:
00139         self.header = std_msgs.msg.Header()
00140       if self.status is None:
00141         self.status = actionlib_msgs.msg.GoalStatus()
00142       if self.result is None:
00143         self.result = wpa_supplicant_node.msg.ScanResult()
00144     else:
00145       self.header = std_msgs.msg.Header()
00146       self.status = actionlib_msgs.msg.GoalStatus()
00147       self.result = wpa_supplicant_node.msg.ScanResult()
00148 
00149   def _get_types(self):
00150     """
00151     internal API method
00152     """
00153     return self._slot_types
00154 
00155   def serialize(self, buff):
00156     """
00157     serialize message into buffer
00158     :param buff: buffer, ``StringIO``
00159     """
00160     try:
00161       _x = self
00162       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00163       _x = self.header.frame_id
00164       length = len(_x)
00165       if python3 or type(_x) == unicode:
00166         _x = _x.encode('utf-8')
00167         length = len(_x)
00168       buff.write(struct.pack('<I%ss'%length, length, _x))
00169       _x = self
00170       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00171       _x = self.status.goal_id.id
00172       length = len(_x)
00173       if python3 or type(_x) == unicode:
00174         _x = _x.encode('utf-8')
00175         length = len(_x)
00176       buff.write(struct.pack('<I%ss'%length, length, _x))
00177       buff.write(_struct_B.pack(self.status.status))
00178       _x = self.status.text
00179       length = len(_x)
00180       if python3 or type(_x) == unicode:
00181         _x = _x.encode('utf-8')
00182         length = len(_x)
00183       buff.write(struct.pack('<I%ss'%length, length, _x))
00184       buff.write(_struct_B.pack(self.result.success))
00185       length = len(self.result.bss)
00186       buff.write(_struct_I.pack(length))
00187       for val1 in self.result.bss:
00188         _v1 = val1.stamp
00189         _x = _v1
00190         buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00191         _x = val1.ssid
00192         length = len(_x)
00193         if python3 or type(_x) == unicode:
00194           _x = _x.encode('utf-8')
00195           length = len(_x)
00196         buff.write(struct.pack('<I%ss'%length, length, _x))
00197         _x = val1.bssid
00198         # - if encoded as a list instead, serialize as bytes instead of string
00199         if type(_x) in [list, tuple]:
00200           buff.write(_struct_6B.pack(*_x))
00201         else:
00202           buff.write(_struct_6s.pack(_x))
00203         _x = val1
00204         buff.write(_struct_i2h3i.pack(_x.frequency, _x.beacon_interval, _x.capabilities, _x.quality, _x.noise, _x.level))
00205         _v2 = val1.wpa
00206         length = len(_v2.key_mgmt)
00207         buff.write(_struct_I.pack(length))
00208         for val3 in _v2.key_mgmt:
00209           length = len(val3)
00210           if python3 or type(val3) == unicode:
00211             val3 = val3.encode('utf-8')
00212             length = len(val3)
00213           buff.write(struct.pack('<I%ss'%length, length, val3))
00214         length = len(_v2.group)
00215         buff.write(_struct_I.pack(length))
00216         for val3 in _v2.group:
00217           length = len(val3)
00218           if python3 or type(val3) == unicode:
00219             val3 = val3.encode('utf-8')
00220             length = len(val3)
00221           buff.write(struct.pack('<I%ss'%length, length, val3))
00222         length = len(_v2.pairwise)
00223         buff.write(_struct_I.pack(length))
00224         for val3 in _v2.pairwise:
00225           length = len(val3)
00226           if python3 or type(val3) == unicode:
00227             val3 = val3.encode('utf-8')
00228             length = len(val3)
00229           buff.write(struct.pack('<I%ss'%length, length, val3))
00230         _v3 = val1.rsn
00231         length = len(_v3.key_mgmt)
00232         buff.write(_struct_I.pack(length))
00233         for val3 in _v3.key_mgmt:
00234           length = len(val3)
00235           if python3 or type(val3) == unicode:
00236             val3 = val3.encode('utf-8')
00237             length = len(val3)
00238           buff.write(struct.pack('<I%ss'%length, length, val3))
00239         length = len(_v3.group)
00240         buff.write(_struct_I.pack(length))
00241         for val3 in _v3.group:
00242           length = len(val3)
00243           if python3 or type(val3) == unicode:
00244             val3 = val3.encode('utf-8')
00245             length = len(val3)
00246           buff.write(struct.pack('<I%ss'%length, length, val3))
00247         length = len(_v3.pairwise)
00248         buff.write(_struct_I.pack(length))
00249         for val3 in _v3.pairwise:
00250           length = len(val3)
00251           if python3 or type(val3) == unicode:
00252             val3 = val3.encode('utf-8')
00253             length = len(val3)
00254           buff.write(struct.pack('<I%ss'%length, length, val3))
00255     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00256     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00257 
00258   def deserialize(self, str):
00259     """
00260     unpack serialized message in str into this message instance
00261     :param str: byte array of serialized message, ``str``
00262     """
00263     try:
00264       if self.header is None:
00265         self.header = std_msgs.msg.Header()
00266       if self.status is None:
00267         self.status = actionlib_msgs.msg.GoalStatus()
00268       if self.result is None:
00269         self.result = wpa_supplicant_node.msg.ScanResult()
00270       end = 0
00271       _x = self
00272       start = end
00273       end += 12
00274       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00275       start = end
00276       end += 4
00277       (length,) = _struct_I.unpack(str[start:end])
00278       start = end
00279       end += length
00280       if python3:
00281         self.header.frame_id = str[start:end].decode('utf-8')
00282       else:
00283         self.header.frame_id = str[start:end]
00284       _x = self
00285       start = end
00286       end += 8
00287       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00288       start = end
00289       end += 4
00290       (length,) = _struct_I.unpack(str[start:end])
00291       start = end
00292       end += length
00293       if python3:
00294         self.status.goal_id.id = str[start:end].decode('utf-8')
00295       else:
00296         self.status.goal_id.id = str[start:end]
00297       start = end
00298       end += 1
00299       (self.status.status,) = _struct_B.unpack(str[start:end])
00300       start = end
00301       end += 4
00302       (length,) = _struct_I.unpack(str[start:end])
00303       start = end
00304       end += length
00305       if python3:
00306         self.status.text = str[start:end].decode('utf-8')
00307       else:
00308         self.status.text = str[start:end]
00309       start = end
00310       end += 1
00311       (self.result.success,) = _struct_B.unpack(str[start:end])
00312       self.result.success = bool(self.result.success)
00313       start = end
00314       end += 4
00315       (length,) = _struct_I.unpack(str[start:end])
00316       self.result.bss = []
00317       for i in range(0, length):
00318         val1 = wpa_supplicant_node.msg.Bss()
00319         _v4 = val1.stamp
00320         _x = _v4
00321         start = end
00322         end += 8
00323         (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00324         start = end
00325         end += 4
00326         (length,) = _struct_I.unpack(str[start:end])
00327         start = end
00328         end += length
00329         if python3:
00330           val1.ssid = str[start:end].decode('utf-8')
00331         else:
00332           val1.ssid = str[start:end]
00333         start = end
00334         end += 6
00335         val1.bssid = str[start:end]
00336         _x = val1
00337         start = end
00338         end += 20
00339         (_x.frequency, _x.beacon_interval, _x.capabilities, _x.quality, _x.noise, _x.level,) = _struct_i2h3i.unpack(str[start:end])
00340         _v5 = val1.wpa
00341         start = end
00342         end += 4
00343         (length,) = _struct_I.unpack(str[start:end])
00344         _v5.key_mgmt = []
00345         for i in range(0, length):
00346           start = end
00347           end += 4
00348           (length,) = _struct_I.unpack(str[start:end])
00349           start = end
00350           end += length
00351           if python3:
00352             val3 = str[start:end].decode('utf-8')
00353           else:
00354             val3 = str[start:end]
00355           _v5.key_mgmt.append(val3)
00356         start = end
00357         end += 4
00358         (length,) = _struct_I.unpack(str[start:end])
00359         _v5.group = []
00360         for i in range(0, length):
00361           start = end
00362           end += 4
00363           (length,) = _struct_I.unpack(str[start:end])
00364           start = end
00365           end += length
00366           if python3:
00367             val3 = str[start:end].decode('utf-8')
00368           else:
00369             val3 = str[start:end]
00370           _v5.group.append(val3)
00371         start = end
00372         end += 4
00373         (length,) = _struct_I.unpack(str[start:end])
00374         _v5.pairwise = []
00375         for i in range(0, length):
00376           start = end
00377           end += 4
00378           (length,) = _struct_I.unpack(str[start:end])
00379           start = end
00380           end += length
00381           if python3:
00382             val3 = str[start:end].decode('utf-8')
00383           else:
00384             val3 = str[start:end]
00385           _v5.pairwise.append(val3)
00386         _v6 = val1.rsn
00387         start = end
00388         end += 4
00389         (length,) = _struct_I.unpack(str[start:end])
00390         _v6.key_mgmt = []
00391         for i in range(0, length):
00392           start = end
00393           end += 4
00394           (length,) = _struct_I.unpack(str[start:end])
00395           start = end
00396           end += length
00397           if python3:
00398             val3 = str[start:end].decode('utf-8')
00399           else:
00400             val3 = str[start:end]
00401           _v6.key_mgmt.append(val3)
00402         start = end
00403         end += 4
00404         (length,) = _struct_I.unpack(str[start:end])
00405         _v6.group = []
00406         for i in range(0, length):
00407           start = end
00408           end += 4
00409           (length,) = _struct_I.unpack(str[start:end])
00410           start = end
00411           end += length
00412           if python3:
00413             val3 = str[start:end].decode('utf-8')
00414           else:
00415             val3 = str[start:end]
00416           _v6.group.append(val3)
00417         start = end
00418         end += 4
00419         (length,) = _struct_I.unpack(str[start:end])
00420         _v6.pairwise = []
00421         for i in range(0, length):
00422           start = end
00423           end += 4
00424           (length,) = _struct_I.unpack(str[start:end])
00425           start = end
00426           end += length
00427           if python3:
00428             val3 = str[start:end].decode('utf-8')
00429           else:
00430             val3 = str[start:end]
00431           _v6.pairwise.append(val3)
00432         self.result.bss.append(val1)
00433       return self
00434     except struct.error as e:
00435       raise genpy.DeserializationError(e) #most likely buffer underfill
00436 
00437 
00438   def serialize_numpy(self, buff, numpy):
00439     """
00440     serialize message with numpy array types into buffer
00441     :param buff: buffer, ``StringIO``
00442     :param numpy: numpy python module
00443     """
00444     try:
00445       _x = self
00446       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00447       _x = self.header.frame_id
00448       length = len(_x)
00449       if python3 or type(_x) == unicode:
00450         _x = _x.encode('utf-8')
00451         length = len(_x)
00452       buff.write(struct.pack('<I%ss'%length, length, _x))
00453       _x = self
00454       buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00455       _x = self.status.goal_id.id
00456       length = len(_x)
00457       if python3 or type(_x) == unicode:
00458         _x = _x.encode('utf-8')
00459         length = len(_x)
00460       buff.write(struct.pack('<I%ss'%length, length, _x))
00461       buff.write(_struct_B.pack(self.status.status))
00462       _x = self.status.text
00463       length = len(_x)
00464       if python3 or type(_x) == unicode:
00465         _x = _x.encode('utf-8')
00466         length = len(_x)
00467       buff.write(struct.pack('<I%ss'%length, length, _x))
00468       buff.write(_struct_B.pack(self.result.success))
00469       length = len(self.result.bss)
00470       buff.write(_struct_I.pack(length))
00471       for val1 in self.result.bss:
00472         _v7 = val1.stamp
00473         _x = _v7
00474         buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00475         _x = val1.ssid
00476         length = len(_x)
00477         if python3 or type(_x) == unicode:
00478           _x = _x.encode('utf-8')
00479           length = len(_x)
00480         buff.write(struct.pack('<I%ss'%length, length, _x))
00481         _x = val1.bssid
00482         # - if encoded as a list instead, serialize as bytes instead of string
00483         if type(_x) in [list, tuple]:
00484           buff.write(_struct_6B.pack(*_x))
00485         else:
00486           buff.write(_struct_6s.pack(_x))
00487         _x = val1
00488         buff.write(_struct_i2h3i.pack(_x.frequency, _x.beacon_interval, _x.capabilities, _x.quality, _x.noise, _x.level))
00489         _v8 = val1.wpa
00490         length = len(_v8.key_mgmt)
00491         buff.write(_struct_I.pack(length))
00492         for val3 in _v8.key_mgmt:
00493           length = len(val3)
00494           if python3 or type(val3) == unicode:
00495             val3 = val3.encode('utf-8')
00496             length = len(val3)
00497           buff.write(struct.pack('<I%ss'%length, length, val3))
00498         length = len(_v8.group)
00499         buff.write(_struct_I.pack(length))
00500         for val3 in _v8.group:
00501           length = len(val3)
00502           if python3 or type(val3) == unicode:
00503             val3 = val3.encode('utf-8')
00504             length = len(val3)
00505           buff.write(struct.pack('<I%ss'%length, length, val3))
00506         length = len(_v8.pairwise)
00507         buff.write(_struct_I.pack(length))
00508         for val3 in _v8.pairwise:
00509           length = len(val3)
00510           if python3 or type(val3) == unicode:
00511             val3 = val3.encode('utf-8')
00512             length = len(val3)
00513           buff.write(struct.pack('<I%ss'%length, length, val3))
00514         _v9 = val1.rsn
00515         length = len(_v9.key_mgmt)
00516         buff.write(_struct_I.pack(length))
00517         for val3 in _v9.key_mgmt:
00518           length = len(val3)
00519           if python3 or type(val3) == unicode:
00520             val3 = val3.encode('utf-8')
00521             length = len(val3)
00522           buff.write(struct.pack('<I%ss'%length, length, val3))
00523         length = len(_v9.group)
00524         buff.write(_struct_I.pack(length))
00525         for val3 in _v9.group:
00526           length = len(val3)
00527           if python3 or type(val3) == unicode:
00528             val3 = val3.encode('utf-8')
00529             length = len(val3)
00530           buff.write(struct.pack('<I%ss'%length, length, val3))
00531         length = len(_v9.pairwise)
00532         buff.write(_struct_I.pack(length))
00533         for val3 in _v9.pairwise:
00534           length = len(val3)
00535           if python3 or type(val3) == unicode:
00536             val3 = val3.encode('utf-8')
00537             length = len(val3)
00538           buff.write(struct.pack('<I%ss'%length, length, val3))
00539     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00540     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00541 
00542   def deserialize_numpy(self, str, numpy):
00543     """
00544     unpack serialized message in str into this message instance using numpy for array types
00545     :param str: byte array of serialized message, ``str``
00546     :param numpy: numpy python module
00547     """
00548     try:
00549       if self.header is None:
00550         self.header = std_msgs.msg.Header()
00551       if self.status is None:
00552         self.status = actionlib_msgs.msg.GoalStatus()
00553       if self.result is None:
00554         self.result = wpa_supplicant_node.msg.ScanResult()
00555       end = 0
00556       _x = self
00557       start = end
00558       end += 12
00559       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00560       start = end
00561       end += 4
00562       (length,) = _struct_I.unpack(str[start:end])
00563       start = end
00564       end += length
00565       if python3:
00566         self.header.frame_id = str[start:end].decode('utf-8')
00567       else:
00568         self.header.frame_id = str[start:end]
00569       _x = self
00570       start = end
00571       end += 8
00572       (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00573       start = end
00574       end += 4
00575       (length,) = _struct_I.unpack(str[start:end])
00576       start = end
00577       end += length
00578       if python3:
00579         self.status.goal_id.id = str[start:end].decode('utf-8')
00580       else:
00581         self.status.goal_id.id = str[start:end]
00582       start = end
00583       end += 1
00584       (self.status.status,) = _struct_B.unpack(str[start:end])
00585       start = end
00586       end += 4
00587       (length,) = _struct_I.unpack(str[start:end])
00588       start = end
00589       end += length
00590       if python3:
00591         self.status.text = str[start:end].decode('utf-8')
00592       else:
00593         self.status.text = str[start:end]
00594       start = end
00595       end += 1
00596       (self.result.success,) = _struct_B.unpack(str[start:end])
00597       self.result.success = bool(self.result.success)
00598       start = end
00599       end += 4
00600       (length,) = _struct_I.unpack(str[start:end])
00601       self.result.bss = []
00602       for i in range(0, length):
00603         val1 = wpa_supplicant_node.msg.Bss()
00604         _v10 = val1.stamp
00605         _x = _v10
00606         start = end
00607         end += 8
00608         (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00609         start = end
00610         end += 4
00611         (length,) = _struct_I.unpack(str[start:end])
00612         start = end
00613         end += length
00614         if python3:
00615           val1.ssid = str[start:end].decode('utf-8')
00616         else:
00617           val1.ssid = str[start:end]
00618         start = end
00619         end += 6
00620         val1.bssid = str[start:end]
00621         _x = val1
00622         start = end
00623         end += 20
00624         (_x.frequency, _x.beacon_interval, _x.capabilities, _x.quality, _x.noise, _x.level,) = _struct_i2h3i.unpack(str[start:end])
00625         _v11 = val1.wpa
00626         start = end
00627         end += 4
00628         (length,) = _struct_I.unpack(str[start:end])
00629         _v11.key_mgmt = []
00630         for i in range(0, length):
00631           start = end
00632           end += 4
00633           (length,) = _struct_I.unpack(str[start:end])
00634           start = end
00635           end += length
00636           if python3:
00637             val3 = str[start:end].decode('utf-8')
00638           else:
00639             val3 = str[start:end]
00640           _v11.key_mgmt.append(val3)
00641         start = end
00642         end += 4
00643         (length,) = _struct_I.unpack(str[start:end])
00644         _v11.group = []
00645         for i in range(0, length):
00646           start = end
00647           end += 4
00648           (length,) = _struct_I.unpack(str[start:end])
00649           start = end
00650           end += length
00651           if python3:
00652             val3 = str[start:end].decode('utf-8')
00653           else:
00654             val3 = str[start:end]
00655           _v11.group.append(val3)
00656         start = end
00657         end += 4
00658         (length,) = _struct_I.unpack(str[start:end])
00659         _v11.pairwise = []
00660         for i in range(0, length):
00661           start = end
00662           end += 4
00663           (length,) = _struct_I.unpack(str[start:end])
00664           start = end
00665           end += length
00666           if python3:
00667             val3 = str[start:end].decode('utf-8')
00668           else:
00669             val3 = str[start:end]
00670           _v11.pairwise.append(val3)
00671         _v12 = val1.rsn
00672         start = end
00673         end += 4
00674         (length,) = _struct_I.unpack(str[start:end])
00675         _v12.key_mgmt = []
00676         for i in range(0, length):
00677           start = end
00678           end += 4
00679           (length,) = _struct_I.unpack(str[start:end])
00680           start = end
00681           end += length
00682           if python3:
00683             val3 = str[start:end].decode('utf-8')
00684           else:
00685             val3 = str[start:end]
00686           _v12.key_mgmt.append(val3)
00687         start = end
00688         end += 4
00689         (length,) = _struct_I.unpack(str[start:end])
00690         _v12.group = []
00691         for i in range(0, length):
00692           start = end
00693           end += 4
00694           (length,) = _struct_I.unpack(str[start:end])
00695           start = end
00696           end += length
00697           if python3:
00698             val3 = str[start:end].decode('utf-8')
00699           else:
00700             val3 = str[start:end]
00701           _v12.group.append(val3)
00702         start = end
00703         end += 4
00704         (length,) = _struct_I.unpack(str[start:end])
00705         _v12.pairwise = []
00706         for i in range(0, length):
00707           start = end
00708           end += 4
00709           (length,) = _struct_I.unpack(str[start:end])
00710           start = end
00711           end += length
00712           if python3:
00713             val3 = str[start:end].decode('utf-8')
00714           else:
00715             val3 = str[start:end]
00716           _v12.pairwise.append(val3)
00717         self.result.bss.append(val1)
00718       return self
00719     except struct.error as e:
00720       raise genpy.DeserializationError(e) #most likely buffer underfill
00721 
00722 _struct_I = genpy.struct_I
00723 _struct_6B = struct.Struct("<6B")
00724 _struct_B = struct.Struct("<B")
00725 _struct_i2h3i = struct.Struct("<i2h3i")
00726 _struct_3I = struct.Struct("<3I")
00727 _struct_6s = struct.Struct("<6s")
00728 _struct_2I = struct.Struct("<2I")


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:19