Hi,
I'm brandnew to Ignition Perspective and I'm testing requirements we had before using Android programming.
I try to send data to a REST API hosted on a OPC-Router.
I use system.net.httpPost like you can see in my code.
I receive the data and it seemed to work but I'm not able to encode the text properties to German. It seems it's not possible to send char like 'ü' or 'ä'.
Can somebody explain how I can make this possible?
my test code:
session.custom.barcode = data.text
xmlMessage = "<scan>"
xmlMessage = xmlMessage + "<barcode>" + str(data.text) + "</barcode>"
xmlMessage = xmlMessage + "<quantity>" + str(session.custom.quantity) + "</quantity>"
xmlMessage = xmlMessage + "<orderNumber>" + str(session.custom.orderNumber) + "</orderNumber>"
xmlMessage = xmlMessage + "</scan>"
#Send the information to a REST API, receive the Database GUID as response
session.custom.response = system.net.httpPost( "http://MY TEST SERVER:32170/api/barcode", "application/xml; charset=UTF-8", xmlMessage)
system.perspective.vibrateDevice(1000)