hello
Im trying to send a small array with two integers over bluetooth mesh
uint32_t error_code; uint8_t var1 = 0; uint8_t var2 = 0; const uint8_t payload[2] = {var1, var2}; simple_on_off_server_t * p_server = p_args; access_message_tx_t reply; reply.opcode.opcode = RECEIVE_RESPONSE; reply.opcode.company_id = ACCESS_COMPANY_ID_NORDIC; reply.p_buffer =(const uint8_t *)&payload; reply.force_segmented = false; reply.length = sizeof(payload); error_code = access_model_publish(p_server->model_handle, &reply);
but Im getting error code 7 invalid params..
how should I send an array like this? and why is this way wrong?
thanks in advance