I’m trying to play with custom capabilities, to enrich my app
but i (again) bump into I presume a bad understanding of how this all works. Probably my level of english not good enough to perfectly understand the manuals
there is my problem : when init’ing my device (within the onInit method) I just want to update some options of my capability. But I do not know how to access the options.
When I run :
const capabilityList = this.getCapabilities();
this works fine, I properly get the list that I defined in the json files :
but at the same place within onInit, if i try to access the options :
const option = this.getCapabilityOptions ('*any of the above capability id*'); this.log (option);
I just get
any clue of what I’m doing wrong ?