Unity - Transfer Values Infotable via Thingworx Service
Hello Community,
I hope my English is sufficient to explain my Problem.
I developed an App in Unity to transfer Data/Information about Test Parts for my Masterthesis and I am nearly finished.
I have only one Problem to transfer Data from my Unity App to our ThingWorx Server.
I wrote an Service to transfer my Data to my Info Table:
ServiceCode:
var koorDaten = new Object(); koorDaten.Koordinaten = objektkoor; koorDaten.Betreff = objektbetreff; var tablereference = me.Koor; tablereference.AddRow(koorDaten);
Code in Unity
string myPostData = "{\"objektKoor\":\"" + 444545 + "\", \"objektBetreff\":\"" + 1333 + "\"}";
byte[] pData = Encoding.ASCII.GetBytes(myPostData.ToCharArray());
Debug.Log(pData);
string auswertung = Encoding.ASCII.GetString(pData);
Debug.Log(auswertung);
Debug.Log(System.BitConverter.ToString(pData).Replace("-", string.Empty).ToLower());
Dictionary<string, string> dictionary = new Dictionary<string, string>();
dictionary.Add("cache-control", "no-cache");
dictionary.Add("appkey", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
dictionary.Add("content-type", "application/json");
dictionary.Add("accept", "application/json");
WWW call = new WWW("http:/xxxxxxxxxxxxxxxxxxxxxxxxxxx.de/Thingworx/Things/Koordinaten/Services/UnityDaten", pData, dictionary);
Now I have only one small Problem, my rows are all blanc, the rows are created but no values are in them
Screenshot:
I cant seem to the Problem, I am stuck, looking into my Code, but cant find the Problem.
I hope someone could help me out, thank you very much

