<list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/scripts/cron/cron.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/cron/cron.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/remoteinfos.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/remoteinfos.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/tmdb.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/tmdb.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tools/pop/pop.py" beforeDir="false" afterPath="$PROJECT_DIR$/tools/pop/pop.py" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/tools/pop/scanner.py" beforeDir="false" afterPath="$PROJECT_DIR$/tools/pop/scanner.py" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/tools/pop/startpopdaemon" beforeDir="false" afterPath="$PROJECT_DIR$/tools/pop/startpopdaemon" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<workItem from="1591437163856" duration="1334000" />
<workItem from="1591438704520" duration="2066000" />
<workItem from="1591456322960" duration="915000" />
- <workItem from="1591458634078" duration="2877000" />
- </task>
- <task id="LOCAL-00275" summary=".">
- <created>1578559851311</created>
- <option name="number" value="00275" />
- <option name="presentableId" value="LOCAL-00275" />
- <option name="project" value="LOCAL" />
- <updated>1578559851311</updated>
+ <workItem from="1591458634078" duration="3468000" />
+ <workItem from="1591856612414" duration="2361000" />
</task>
<task id="LOCAL-00276" summary=".">
<created>1578855521161</created>
<option name="project" value="LOCAL" />
<updated>1591440466805</updated>
</task>
- <option name="localTasksCounter" value="324" />
+ <task id="LOCAL-00324" summary=".">
+ <created>1591461737974</created>
+ <option name="number" value="00324" />
+ <option name="presentableId" value="LOCAL-00324" />
+ <option name="project" value="LOCAL" />
+ <updated>1591461737974</updated>
+ </task>
+ <option name="localTasksCounter" value="325" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="960" y="247" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.0.2560.1040@0.0.2560.1040" timestamp="1585852940968" />
- <state x="935" y="114" width="1170" height="972" key="CommitChangelistDialog2" timestamp="1591440409900">
+ <state x="935" y="114" width="1170" height="972" key="CommitChangelistDialog2" timestamp="1591461729560">
<screen x="0" y="0" width="2560" height="1040" />
</state>
- <state x="935" y="114" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1591440409900" />
+ <state x="935" y="114" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1591461729560" />
<state x="1060" y="275" key="FileChooserDialogImpl" timestamp="1590912263817">
<screen x="0" y="0" width="2560" height="1040" />
</state>
ch = svc.getCharacteristics()[0]
# Main loop --------
- p.writeCharacteristic(ch.valHandle + 1, b'\x02\x00')
+ # p.writeCharacteristic(ch.valHandle + 1, b'\x02\x00')
while True:
try:
- if p.waitForNotifications(0.2):
+ if p.waitForNotifications(1.0):
# handleNotification() was called
continue
print("Disconnected... Waiting for reconnection...")
break
- except btle.BTLEDisconnectError:
- print("Disconnect error")
+ except btle.BTLEDisconnectError as err:
+ print("Disconnect error {0}".format(err))
continue
-#!/usr/bin/python
+#!/usr/bin/python3
from bluepy.btle import Scanner, DefaultDelegate
+from urllib import request
+import sys
class ScanDelegate(DefaultDelegate):
def __init__(self):
def handleDiscovery(self, dev, isNewDev, isNewData):
if isNewDev:
- print "Discovered device", dev.addr
+ print("Discovered device", dev.addr)
elif isNewData:
- print "Received new data from", dev.addr
+ print("Received new data from", dev.addr)
scanner = Scanner().withDelegate(ScanDelegate())
-devices = scanner.scan(10)
+devices = scanner.scan(20)
for dev in devices:
- print "Device %s (%s), RSSI=%d dB" % (dev.addr, dev.addrType, dev.rssi)
+ print("Device %s (%s), RSSI=%d dB" % (dev.addr, dev.addrType, dev.rssi))
for (adtype, desc, value) in dev.getScanData():
- print " %s = %s" % (desc, value)
+ print(" %s = %s" % (desc, value))