Read Tag without printing



I see that there is a way to read the current tag and print the output to a label using the below ZPL.







Two questions:

  1. Is there a way to read it through the SDK without printing it? The reason I am asking is, I need to encode and print on the tag. Before encoding though I need to know what the current data is on the tag. After that I can print.
  2. Do you have an example on how to read using your iOS SDK?