Closed netmanchris closed 5 years ago
Interesting! I'll have a look on this first thing on Monday!
@netmanchris github went a bit crazy yesterday but I did try the code you mentioned above and I wasn't able to reproduce your issue.
One thing I did notice is that whenever the board disconnects the is_connected
property won't update. Perhaps that was the problem? Does that make sense?
@murilopolese Makes sense! I'll test this out and update with results.
Hey, @netmanchris ! Did you have any luck finding out if it was really a connection error or a different bug? I'm keen to add this to the things to fix on next sprint of development!
Hey @netmanchris! Did you have any luck finding out if this was a connection problem? Otherwise I'd like to close this issue :)
Let's close the issue. Issue seems to have resolved itself. Not sure what I did or didn't do differently.
Hey @netmanchris !
Reading again and carefully your logs it seems that was a connection problem.
my_pixel.get_wifi_status()
Traceback (most recent call last):
...
raise TimeoutError('Request timed out')
TimeoutError: Request timed out
my_pixel.get_battery_status()
Traceback (most recent call last):
...
raise SerialException('read failed: {}'.format(e))
serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Environment: macOS Mojave Python version
Having issues with pixel python code status methods on pixel class object. In the example below you can see that I have an object of
<class 'communitysdk.retailpixelkit.RetailPixelKitSerial'>
that is in a connected state. I used the connect_to_wifi method to ensure that it was connected and response suggests that it worked as I'm getting a valid IP address for this network.When I run the .get_wifi_status method on this object. I get the error below. This is consistent with the get_battery function as well.
The get_battery_status method also appears to be having issues, but with slightly different output.