|
@@ -8,7 +8,7 @@ from kivy.lang import Builder
|
|
|
import asyncio
|
|
|
from bleak import BleakClient,BleakScanner
|
|
|
|
|
|
-import json
|
|
|
+# import json
|
|
|
|
|
|
STM32_UUID = "00001101-0000-1000-8000-00805F9B34FB"
|
|
|
|
|
@@ -36,11 +36,11 @@ class InfoWidget(Widget):
|
|
|
''')
|
|
|
grid00.add_widget(connect_button)
|
|
|
|
|
|
- for d in devices:
|
|
|
- if d.name == deviceName:
|
|
|
- await self.connect_and_receive(d.address)
|
|
|
- self.add_widget(Label(text="Connected",width=self.width,height=self.height / 4))
|
|
|
- break
|
|
|
+ # for d in devices:
|
|
|
+ # if d.name == deviceName:
|
|
|
+ # await self.connect_and_receive(d.address)
|
|
|
+ # self.add_widget(Label(text="Connected",width=self.width,height=self.height / 4))
|
|
|
+ # break
|
|
|
# grid1 = GridLayout(cols=2,rows=5,width=self.width,height=self.height)
|
|
|
# self.add_widget(grid1)
|
|
|
# for num,d in enumerate(devices):
|