RenewMessageCDP是针对某条消息的,不是针对某个子地址的。
例如:
SetMessage_BC_RT(1,GetCMD1Info(rt,1,1,0),30,1,NULL,frameinfo_normal,2);
SetMessage_BC_RT(2,GetCMD1Info(rt,1,1,0),30,1,NULL,frameinfo_normal,3);
上述两条消息的cmd1info是一样的。
RenewMessageCDP(1,0,datainfo1,32);
RenewMessageCDP(2,0,datainfo2,32);
上述两个函数调用不会更新子地址1的缓存,当发送消息1时,将使用datainfo1更新子地址1的缓存。同理,当发送消息2时,将使用datainfo2更新子地址1的缓存。