setup:
segger V4.20a
windows 10 pro
SDK: nRF5 SDK for MESH 3.2.0
hardware;
NRF52840
I am trying to implement the simple_on_off model instead of the regulat generic_on_off.
This is being done as a proof of concept, to assure that the model in question is working, before trying to implement my own. I am aware that the purpose of the models are quite simmilar. My current implementation doesn't change the provisioner or any config files, other than adding the simple_on_off source files and modifying the main function.
These are some notable changes:
const simple_on_off_client_t m_on_off_client = { .status_cb = app_on_off_client_status_cb, .timeout_cb = app_timeout_cb }; //------------------------------------------------------------------------- static void models_init_cb(void) { __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Initializing and adding models\n"); for (uint32_t i = 0; i < CLIENT_MODEL_INSTANCE_COUNT; ++i) { m_clients[i]=m_on_off_client; __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "added client: %d\n",i); ERROR_CHECK(simple_on_off_client_init(&m_clients[i], i + 1)); } } //--------------------------------------------------------------------------
Apart from that i've ofcourse defined the cb functions, and made some other button configurations, but i doubt that's relevant.
My question is which modifications and considerations i'll need to make in order to provision.