getProgramming parameters now with real data types
This commit is contained in:
@@ -63,6 +63,40 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
//LocalWebRequest
|
||||
/// <summary>
|
||||
/// Get Radio Configuration from database matching the PcbID
|
||||
/// </summary>
|
||||
/// <param name="pcbID">PcbID from Meter</param>
|
||||
/// <returns></returns>
|
||||
[Route("GetProgrammingParametersFixNa"), HttpGet]
|
||||
public async Task<HttpResponseMessage> GetProgrammingParametersFixNa()
|
||||
{
|
||||
try
|
||||
{
|
||||
return await Task.Run(() =>
|
||||
{
|
||||
var builder = new StringBuilder();
|
||||
var ret = OrderProgrammingParameters.GetProgrammingParametersFixNa( GlobalConfig.ConnectionString.Value);
|
||||
foreach (var r in ret.Where(r => r.RegisterName == "SENSUSRADIO_EncryptionKey"))
|
||||
{
|
||||
foreach (var t in r.RegisterValue)
|
||||
{
|
||||
builder.Append(t.ToString("x2"));
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return Request.CreateResponse(HttpStatusCode.OK, ret);
|
||||
|
||||
});
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return Request.CreateResponse(HttpStatusCode.InternalServerError, ex);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get Radio Configuration from database matching the PcbID
|
||||
|
||||
Reference in New Issue
Block a user