This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Accessing the GenericOnOffStatus in nRF Mesh Android Activity after doing a GenericOnOffGet

As per one of my discussions with , on another thread here, I can send a GenericOnOffGet from my android activity and I will get the status of the light in GenericOnOffStatus construct.

But the code from Nordic employs the use of mViewModel which through many layers of abstraction uses the MeshManagerApi of the MeshService running in the current context.

But I don't want to use mViewModel if I can directly connect to MeshManagerApi of the MeshService.

Is there a way to access the GenericOnOffStatus using MeshManagerApi of the MeshService? If not, which route should I go? Meaning, how should I get access to GenericOnOffStatus which uses the same context as the running MeshService from my Activity? What is the handle I should use in my activity to access this?

I can see in the debug Log the GenericOnOffStatus coming. But, I guess it's from the mViewModel construct (correct me if I'm wrong on this). I don't want it from mViewModel. I want it directly from the MeshmanagerApi of the service.

Parents Reply Children
No Data
Related