From dc08792e725ceae58abdb5cc622e09f1b09ddff5 Mon Sep 17 00:00:00 2001 From: akeonly Date: Sat, 11 May 2019 18:33:33 +0700 Subject: [PATCH] Update README.rst : example for network printer Add example for Network Printer --- README.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.rst b/README.rst index fc551e1..a6d5130 100644 --- a/README.rst +++ b/README.rst @@ -65,6 +65,17 @@ The basic usage is: p.barcode('1324354657687', 'EAN13', 64, 2, '', '') p.cut() +Another example for Network printer: +.. code:: python + + from escpos.printer import Network + + kitchen = Network("192.168.1.100") #Printer IP Address + kitchen.text("Hello World\n") + kitchen.barcode('1324354657687', 'EAN13', 64, 2, '', '') + kitchen.cut() + + The full project-documentation is available on `Read the Docs `_. Contributing