self.set_status('error',str(e))
return None
self.set_status('error',str(e))
return None
- @http.route('/hw_proxy/Vis_scanner_connected', type='json', auth='none', cors='*')
- def is_scanner_connected(self):
- return self.get_device() != None
-
def get_barcode(self):
""" Returns a scanned barcode. Will wait at most 5 seconds to get a barcode, and will
return barcode scanned in the past if they are not older than 5 seconds and have not
def get_barcode(self):
""" Returns a scanned barcode. Will wait at most 5 seconds to get a barcode, and will
return barcode scanned in the past if they are not older than 5 seconds and have not