@magicw ok,thanks!
magicw
@magicw
0
Reputation
4
Posts
386
Profile views
0
Followers
0
Following
Best posts made by magicw
This user hasn't posted anything yet.
Latest posts made by magicw
-
RE: if `MY_NODE_ID` is not AUTO
@hek For example,If i define
MY_NODE_ID
is2
,When the node reset,,the logic of this code will write the eeprom again(hwWriteConfig(EEPROM_NODE_ID_ADDRESS, MY_NODE_ID);
). Isn't it? -
if `MY_NODE_ID` is not AUTO
if (MY_NODE_ID != AUTO) { // Set static id _nc.nodeId = MY_NODE_ID; // Save static id in eeprom hwWriteConfig(EEPROM_NODE_ID_ADDRESS, MY_NODE_ID); }
In the
stInitTransition
function,ifMY_NODE_ID
is not AUTO,the code will write eeprom one time.if the node reset because some mistakes,It's to bad for the eeprom.Isn't it? -
low power designe
I have tested the lightsensor(2.0) 's Electric current(int 5v)about 6.5ma,if use 1500mAh 18650 Li battery,it can work about 10 days。How to increase the working hours? thanks!