Closed AnderssonPeter closed 6 years ago
It looks like os.killpg
is also not available under windows.
Honestly I'm not a big fan of porting gatttool to windows and wrapping it via stdin/stdout. I would prefer if we find a library that we can talk directly to like bluepy or pygatt.
But I'm not sure if such a library exists on Windows...
duplicate of #51
I have written a small utility for windows that tries to mimic gatttool and it seems to work at least when i run it in a command line. But when i try to run you python script on windows i get the following error:
If i understand correctly the
os.setsid
does not exist on windows and i have no idea what it does. But i tried to remove thepreexec_fn=os.setsid
and that seemed to solve the issue.Any chance that you could release a new version that includes a better fix? (my guess is that you can't just remove it on Linux without breaking things).