bitrate16 / peripage-python

Python module and documentation for direct printing on Peripage thermal printers via bluetooth
GNU General Public License v3.0
81 stars 10 forks source link

getDeviceBattery(self) #22

Open KashifRizwan007 opened 4 months ago

KashifRizwan007 commented 4 months ago

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.

bitrate16 commented 3 months ago

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

KashifRizwan007 commented 3 months ago

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.

bitrate16 commented 3 months ago

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