Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: Dynamically starting node as endpoint OR router based on Power source

$
0
0

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!


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>