#!/bin/env python3

from socket import create_connection

connection = create_connection(("localhost", 8181))

while True:
    data = input()
    odf_message = \
    b'''<Objects xmlns="odf.xsd">
            <Object>
                <id>ExampleAgent</id>
                <InfoItem name="ExampleAgentSensor">
                    <value>''' +\
                    bytes(data, "utf-8") +\
                b'''</value>
                </InfoItem>
            </Object>
        </Objects>'''
    connection.sendall(odf_message)

38cd9afa6e6ea325b665a6a7dfe4d1ffe1cc010a
<mask token>

<mask token>
while True:
    data = input()
    odf_message = (
        b'<Objects xmlns="odf.xsd">\n            <Object>\n                <id>ExampleAgent</id>\n                <InfoItem name="ExampleAgentSensor">\n                    <value>'
         + bytes(data, 'utf-8') +
        b'</value>\n                </InfoItem>\n            </Object>\n        </Objects>'
        )
    connection.sendall(odf_message)

<mask token>
connection = create_connection(('localhost', 8181))
while True:
    data = input()
    odf_message = (
        b'<Objects xmlns="odf.xsd">\n            <Object>\n                <id>ExampleAgent</id>\n                <InfoItem name="ExampleAgentSensor">\n                    <value>'
         + bytes(data, 'utf-8') +
        b'</value>\n                </InfoItem>\n            </Object>\n        </Objects>'
        )
    connection.sendall(odf_message)

from socket import create_connection
connection = create_connection(('localhost', 8181))
while True:
    data = input()
    odf_message = (
        b'<Objects xmlns="odf.xsd">\n            <Object>\n                <id>ExampleAgent</id>\n                <InfoItem name="ExampleAgentSensor">\n                    <value>'
         + bytes(data, 'utf-8') +
        b'</value>\n                </InfoItem>\n            </Object>\n        </Objects>'
        )
    connection.sendall(odf_message)

#!/bin/env python3

from socket import create_connection

connection = create_connection(("localhost", 8181))

while True:
    data = input()
    odf_message = \
    b'''<Objects xmlns="odf.xsd">
            <Object>
                <id>ExampleAgent</id>
                <InfoItem name="ExampleAgentSensor">
                    <value>''' +\
                    bytes(data, "utf-8") +\
                b'''</value>
                </InfoItem>
            </Object>
        </Objects>'''
    connection.sendall(odf_message)
