Lines Matching refs:value

30         first = int(service.attributes['handle'].value);
33 last += [ max([int(include.attributes['handle'].value) for include in includes]) ];
35 … last += [ max([int(descriptor.attributes['handle'].value) for descriptor in descriptors]) ];
37 …last += [ max([int(characteristic.attributes['handle'].value) for characteristic in characteristic…
50 if (serviceType is None) or (serviceType == service.attributes['type'].value):
51 _uuid = int(service.attributes['uuid'].value, 16);
63 if (serviceType is None) or (serviceType == service.attributes['type'].value):
64 _uuid = int(service.attributes['uuid'].value, 16);
85 includes['uuids'] += [ int(include.attributes['uuid'].value, 16) ];
86 …des['handles'] += [ [ int(include.attributes['first'].value), int(include.attributes['last'].value
94 _serviceHandle = int(service.attributes['handle'].value);
97 _permissions = int(descriptor.attributes['permissions'].value);
99 descriptors['uuid'] += [ int(descriptor.attributes['uuid'].value, 16) ];
100 descriptors['handle'] += [ int(descriptor.attributes['handle'].value) ];
121 _serviceHandle = int(service.attributes['handle'].value);
124 _permissions = int(characteristic.attributes['permissions'].value);
126 … characteristics['uuid'] += [ int(characteristic.attributes['uuid'].value, 16) ];
127 … characteristics['handle'] += [ int(characteristic.attributes['handle'].value) ];
128 … characteristics['value_handle'] += [ int(characteristic.attributes['handle'].value)+1 ];
129 … characteristics['property'] += [ int(characteristic.attributes['properties'].value) ];
130 … characteristics['permission'] += [ int(characteristic.attributes['permissions'].value) ];
135 def __toArray(self, value): argument
137 if value:
138 if re.match('[0-9A-F]{2}( [0-9A-F]{2})+', value):
139 data = [ int(hexNumber, 16) for hexNumber in value.split(' ') ];
140 elif len(value) > 2:
141 data = [ ord(char) for char in value ];
143 data = [ int(value, 16) ];
147 value = None;
150 if int(characteristic.attributes['handle'].value) == handle:
151 value = characteristic.firstChild.data.strip('\r\n\t');
153 return self.__toArray(value);
156 value = None;
159 if int(characteristic.attributes['handle'].value) == handle:
160 value = characteristic.firstChild.data.strip('\r\n\t');
162 return value;
165 value = None;
168 if int(descriptor.attributes['handle'].value) == handle:
169 value = descriptor.firstChild.data.strip('\r\n\t');
171 return self.__toArray(value);
174 value = None;
177 if int(descriptor.attributes['handle'].value) == handle:
178 value = descriptor.firstChild.data.strip('\r\n\t');
180 return value;