I am trying to Connect Bosch GLM 50c with Windows Apps and code projects but even if i find the device i cannot connect.
I have tried 3 win-apps (ArCADia CAD software, SiteMaster Building CAD software, GLM transfer software) and 2 projects for this device (in python here and in C# here) but all respond the same.
All can find the device, but when trying to connect, the device seems to be connected and after a while the connection is lost.
However the device works excellent with Android Apps.
Does anyone have any idea? Is it possible for a device to connect with different OS?
Here is a simple connection project in python. I posted 2 codes. I have bolded the lines where I face the problem.
The bolded line of first code ,calls the def connect (self, addrport) function of the second(library) code, and in the bolded line of second code it hangs. The device seems to be connected (it appears the bluetooth symbol on screen) and after a while the connection is lost and exeption is thrown.
I have no idea what the bt.connect (self._sockfd, addr, port) does and why it hangs.
GLM_50c.py
Here is the msbt.py file from python39 Libraries, where the code it hangs.