src/eric7/MicroPython/Devices/EspDevices.py

branch
eric7
changeset 10019
e56089d00750
parent 9989
286c2a21f36f
child 10022
a95800b414b7
equal deleted inserted replaced
10018:53315c3db26b 10019:e56089d00750
1178 res = { 1178 res = {
1179 'active': ble_active, 1179 'active': ble_active,
1180 'mac': ubinascii.hexlify(ble.config('mac')[1], ':').decode(), 1180 'mac': ubinascii.hexlify(ble.config('mac')[1], ':').decode(),
1181 'addr_type': ble.config('mac')[0], 1181 'addr_type': ble.config('mac')[0],
1182 'name': ble.config('gap_name'), 1182 'name': ble.config('gap_name'),
1183 'rxbuf': ble.config('rxbuf'),
1184 'mtu': ble.config('mtu'), 1183 'mtu': ble.config('mtu'),
1185 } 1184 }
1186 1185
1187 if not ble_active: 1186 if not ble_active:
1188 ble.active(False) 1187 ble.active(False)
1204 status.append( 1203 status.append(
1205 ( 1204 (
1206 self.tr("Address Type"), 1205 self.tr("Address Type"),
1207 self.tr("Public") if bleStatus == 0 else self.tr("Random"), 1206 self.tr("Public") if bleStatus == 0 else self.tr("Random"),
1208 ) 1207 )
1209 )
1210 status.append(
1211 (self.tr("Rx-Buffer"), self.tr("{0} Bytes").format(bleStatus["rxbuf"]))
1212 ) 1208 )
1213 status.append((self.tr("MTU"), self.tr("{0} Bytes").format(bleStatus["mtu"]))) 1209 status.append((self.tr("MTU"), self.tr("{0} Bytes").format(bleStatus["mtu"])))
1214 1210
1215 return status 1211 return status
1216 1212

eric ide

mercurial