Hi,
I am using the low power node example and light switch server example from nRF5 SDK for Mesh v5.0.0.
I have one board as LPN to make friend with one board as light switch server(FN).
If sending unacknowledged message from LPN, the light in FN will switch on.
uint32_t status = NRF_SUCCESS;
generic_onoff_set_params_t set_params;
model_transition_t transition_params;
static uint8_t tid = 0;
set_params.on_off = is_state_on;
set_params.tid = tid++;
transition_params.delay_ms = APP_ONOFF_DELAY_MS;
transition_params.transition_time_ms = APP_ONOFF_TRANSITION_TIME_MS;
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Sending msg: ONOFF SET %d\n", set_params.on_off);
/* Demonstrate un-acknowledged transaction, using the client model instance */
/* In this examples, users will not be blocked if the model is busy */
status = generic_onoff_client_set_unack(&m_client,
&set_params,
&transition_params,
APP_UNACK_MSG_REPEAT_COUNT);
If sending acknowledged message from LPN, the light in FN has no response.
uint32_t status = NRF_SUCCESS;
generic_onoff_set_params_t set_params;
model_transition_t transition_params;
static uint8_t tid = 0;
set_params.on_off = is_state_on;
set_params.tid = tid++;
transition_params.delay_ms = APP_ONOFF_DELAY_MS;
transition_params.transition_time_ms = APP_ONOFF_TRANSITION_TIME_MS;
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Sending msg: ONOFF SET %d\n", set_params.on_off);
/* Demonstrate acknowledged transaction, using 1st client model instance */
/* In this examples, users will not be blocked if the model is busy */
(void)access_model_reliable_cancel(m_client.model_handle);
status = generic_onoff_client_set(&m_client, &set_params, &transition_params);
1. When the LPN sends message to switch light server, why the switch light server can receive unacknowledged message but can not receive acknowledged message? No matter the switch light server is FN or not, it can receive all normal messages such as unacknowledged message and acknowledged message?
2. Can I adjust the timing of receiveDelay and receiveWindow to receive the acknowledgment?
Many thanks.