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!