How do we go about adding servers to the light control example i.e. I would like to control 50 servers via one client. What needs to change in the code besides SERVER_COUNT below:
#define SERVER_COUNT (3)
#define CLIENT_COUNT (SERVER_COUNT + 1)
How do we go about adding servers to the light control example i.e. I would like to control 50 servers via one client. What needs to change in the code besides SERVER_COUNT below:
#define SERVER_COUNT (3)
#define CLIENT_COUNT (SERVER_COUNT + 1)
Hi,
You should not have to change anything besides SERVER_COUNT.
Note: You might get an assert during compilation if the allocated flash page size is too low. If this happens you will need to increase ACCESS_FLASH_PAGE_COUNT and DSM_FLASH_PAGE_COUNT as well.
Ketil
Hi Ketil,
I am using nrf52832 for mesh and need to use 100 servers with single client.
How should be ACCESS_FLASH_PAGE_COUNT and DSM_FLASH_PAGE_COUNT values.
light switch example is being used. what is the maximum no. of servers it can support.
please tell me the limitations.
Hi Vanaja,
There is no single correct answer to this question. Our recommendation is to increment the *_COUNT values by 1 and then re-compile. You will need to do this until you can compile without errors.
My colleagues in the Mesh team also note that you should consider increasing REPLAY_CACHE_ENTRIES since any node cannot receive messages from more than REPLAY_CACHE_ENTRIES.
Ketil
Hi Ketil,
I could able to Increase server count upto 90 where ACCESS_FLASH_PAGE_COUNT is 5 and DSM_FLASH_PAGE_COUNT is 1.
please correct me if I cross any limitations or above settings create any issue in the mesh operation.
Hi,
There are no fixed limitations for *_COUNT values other than pages available for flash. It is entirely application dependent and this will be different for all customers. I.e. If you want to use the Mesh DFU bootloader and do dual-bank transfers this will eventually lead to flash limitations.
The only answer I can give is that you will have to try until you reach the limits for your specific application.
Ketil
Hi,
There are no fixed limitations for *_COUNT values other than pages available for flash. It is entirely application dependent and this will be different for all customers. I.e. If you want to use the Mesh DFU bootloader and do dual-bank transfers this will eventually lead to flash limitations.
The only answer I can give is that you will have to try until you reach the limits for your specific application.
Ketil