Hi. I am beginning to VLE and this may seem stupid, but please excuse and help me out.
I am creating a C# .NET Program that reads values from an HTTP Server and writes them back to Pi. In the VLE, I am trying to connect to default Pi Server. The code I have goes as follows
foreach(var datapoints in messages) // messages is a dict containing tag names and values
PIPoint current_point = PIPoint.FindPIPoint(pIServer, datapoints.Key.ToString()); // search the tag name
AFValues values = new AFValues();
DateTime ts = new DateTime(1970, 1, 1, 0, 0, 0).AddMilliseconds(timestamp); // convert from epoch to Datetime
values.Add(new AFValue(datapoints.Value.ToString(), ts));
current_point.UpdateValues(values, OSIsoft.AF.Data.AFUpdateOption.Replace); //update
But my code is stuck at search step. I am sending the pi tag name as Meters\\Meter002\\GPC.Meter002.Energy Usage and 'Meters\\Meter013C\\GPC.Meter001.Energy Usage. What am I doing wrong? Is it the tag name or the attribute?
Any help is highly appreciated.