peripage-python icon indicating copy to clipboard operation
peripage-python copied to clipboard

getDeviceBattery(self)

Open KashifRizwan007 opened this issue 1 year ago • 3 comments

I tries using this function to only get the battery percentage of the printer but its sending nothing in return all other functions work like getting the serial number and other info. My printer is the Peripage A6 203 dpi.

KashifRizwan007 avatar Jun 03 '24 12:06 KashifRizwan007

Have you tried to call reset() after connect and before fetching battery percentage?

bitrate16 avatar Jun 06 '24 12:06 bitrate16

Thanks for the reply. The battery percentage was coming in bytes format so I had to pick with second byte to get the percentage. Now it all works good and doesn't event need to call reset.

KashifRizwan007 avatar Jun 06 '24 15:06 KashifRizwan007

Have you solved the problem? Can you provide more detailed description, so I can fix it if something is wrong with the library?

bitrate16 avatar Jun 06 '24 23:06 bitrate16