base address for the temperature calibration
This commit is contained in:
@@ -82,6 +82,7 @@
|
||||
|
||||
partial class AutomaticTemperatureCalibration
|
||||
{
|
||||
private const string BASE_ADDRESS = "http://sla12iis01.emea.sensus.net/LaaProductionWeb"; // "http://localhost:52822/LaaProductionWeb";
|
||||
private const string WORKING_DIR = @".\temperature_calibrations";
|
||||
private const string MESSUREMENTS_FILE = @"_messurements.txt";
|
||||
private const string AGGREGATIONS_FILE = @"_aggregations.txt";
|
||||
@@ -354,7 +355,7 @@
|
||||
{
|
||||
httpRequestMessage.Method = HttpMethod.Get;
|
||||
httpRequestMessage.Headers.Authorization = Software.AuthorizationHeader;
|
||||
httpRequestMessage.RequestUri = new Uri($"http://localhost:52822/LaaProductionWeb/API/Production/TempMeter/{pcb}");
|
||||
httpRequestMessage.RequestUri = new Uri($"{BASE_ADDRESS}/API/Production/TempMeter/{pcb}");
|
||||
|
||||
using (var httpResponseMessage = httpClient.SendAsync(httpRequestMessage).Result)
|
||||
{
|
||||
@@ -395,7 +396,7 @@
|
||||
{
|
||||
httpRequestMessage.Method = HttpMethod.Post;
|
||||
httpRequestMessage.Headers.Authorization = Software.AuthorizationHeader;
|
||||
httpRequestMessage.RequestUri = new Uri("http://localhost:52822/LaaProductionWeb/API/Production/TempMeter/Update");
|
||||
httpRequestMessage.RequestUri = new Uri($"{BASE_ADDRESS}/API/Production/TempMeter/Update");
|
||||
httpRequestMessage.Content = new StringContent(JsonConvert.SerializeObject(messurements));
|
||||
httpRequestMessage.Content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
|
||||
|
||||
@@ -459,7 +460,7 @@
|
||||
{
|
||||
httpRequestMessage.Method = HttpMethod.Get;
|
||||
httpRequestMessage.Headers.Authorization = Software.AuthorizationHeader;
|
||||
httpRequestMessage.RequestUri = new Uri($"http://localhost:52822/LaaProductionWeb/API/Production/TempMeter/Pcbs");
|
||||
httpRequestMessage.RequestUri = new Uri($"{BASE_ADDRESS}/API/Production/TempMeter/Pcbs");
|
||||
|
||||
using (var httpResponseMessage = httpClient.SendAsync(httpRequestMessage)
|
||||
.ConfigureAwait(true)
|
||||
|
||||
Reference in New Issue
Block a user