Communication from screen to backend
Hi,
I'm trying to send an event when a button is clicked.
I have added an interaction in Touchgfx designer to call a virtual function when the button is clicked.
In Screen1view.cpp I'm overwriting the virtual function
void SendDataOnButtonClicked()
{
presenter->SetMode();
}
in presenter.cpp
void Screen1Presenter::SetMode()
{
model->SendEvent();
}
In Model.cpp