This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Dynamically starting node as endpoint OR router based on Power source

Other Parts Discussed in Thread: CC2530

Hi guys,

I'm detecting if my cc2530 is connected to a battery or dc power source.

If BATTERY:  start as endpoint  (mostly sleep)

If DC POWER: start as router (stay awake, send data and route traffic)

Can this be done?   I noticed that the compile option POWER_SAVING is used for end points so that they mostly sleep.  Is there a way to enable power saving dynamically in code?

Thanks!