Re: [Printing-architecture] PAPPL 1.2rc1 (Supply levels)
Michael Sweet <[email protected]>
| Newsgroups | dev.linux.lists.printing-architecture |
|---|---|
| Message-ID | <[email protected]> |
Till,
The status callback is called as needed, so you basically need to open the printer device, query, and set the supplies from the response. Look at the "pcl_status" code in my hp-printer-app for a complete example:
https://github.com/michaelrsweet/hp-printer-app
You don't need the "dummy" sample values I include in hp-printer-app (it is still mostly sample code, even if people are apparently using it :) - if you don't get a response, just don't set the supplies.
> On May 16, 2022, at 3:05 AM, Till Kamppeter <[email protected]> wrote:
>
>
>
> On 16/05/2022 00:31, Michael Sweet wrote:
>> Till,
>>> On May 15, 2022, at 5:47 PM, Till Kamppeter <[email protected]> wrote:
>>> ...
>>> The answers with the SNMP URI take some seconds, with the DNS-SD URI they are instantaneous.
>> That's to be expected - SNMP name resolution is slow... :/
>> Have you implemented the status callback or added a call to papplDeviceGetSupplies anywhere in ps-printer-app?
>
> I have a status callback, but without papplDeviceGetSupplies() call. How do I call it in this case. As only example I see the code for "--get-supplies" in testsuite/testpappl.c. But how does the array with the output make it into the web interface page?
>
> Till
>
________________________
Michael Sweet
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkIbDzcZsP1Y8+PQFvmfHXsgfMkQFAmKCYRQACgkQvmfHXsgf MkQSaQ/+MDtZAn6pJp7qVSJExtnuU2I3wH+vXr8dMuJBlXbRWMlSN8ohQ4WKxo3+ bH+PvN9f8BbUhC5+8+l47ee7h9lWuLDf4EvR2Epwh0gth2C1lk7LaFNnErS/3uBX eDYr3iLCkCuBjMid5WrcT8qEyvT1Jf6AY1qXxW6rtpm9gwgWkh8vbfqoKA4HBkq4 uLnzlrTcEl5gIrbKauNgKPOO6jDqlS0J6Z3srwR9H2TzoK/nPq9kXRVEzVkEEy3u WsbCLCothtjVJdtEbRSzlHeMbJ7RRTOuCvoTKYZpYFRdEPgRCg+Mk88ufOpZi7Sw 2M2EnNOeo5tesP6xa0x+GjojqFm0pZmwJFAjG2SjsBXuRDCFDeMSwD2CE3s5HHaR KhNSRWIayU2sklhvijZmwl0gd8twrjGqSrvfjzapj7WWlaHrwxdOR9+37W+8Cnt1 7jiN9nkCGczZwWb+NbBrK+uq6OIcY86b19fBWIQleqXfEHEcMr/wcFfbOjoeC6go 1vOE/Nh9zgoexwKXGsMS7MEpl5kIJGN5NEmthfozPi9RZWxjZab+ifmW6TqIb1aK H1oLMHNdTKFcsg1Mc2VM6RgiIya7wwlz6jS8AM91p1M0+gbJMOxhalHN+7K6buY6 w/+qLPw4ikv6PtRwrY5UujshmEwfmoCpDrYaZuzJfO9SlG9zbcE= =H3kX -----END PGP SIGNATURE-----