@page "/RTD8TM" @using Blazored.Modal.Services @using UI_SequentMicrosystems.Components @using UI_SequentMicrosystems.Services @using Blazored.Modal @inject NavigationManager Navigator @inject RTD8TMService _RTD8TMService Temperature
Device Address: @_RTD8TMService.GetAddress() | DataUpdate: @_UpdateCounter |
@if (EditName) { } else { }
@if (EditName) {
}
1 - Future Graph
@foreach(byte StackID in _RTD8TMService.GetActualData().Keys) {
Stack ID: @StackID
@for (byte chanel = 0; chanel < 8; chanel++) { }
}
@code { public int _UpdateCounter = 0; private bool EditName = false; [CascadingParameter] public IModalService Modal { get; set; } = default!; protected override void OnInitialized() { _RTD8TMService.SetAddress("http://10.1.20.5/");//Navigator.BaseUri); _RTD8TMService.EventUpdateValues += UpdateView; } public async Task UpdateView(object? o, bool b) { await InvokeAsync(() => { StateHasChanged(); _UpdateCounter++; }); } }