sending array of data

In my program there is a structure that is sent on a timer to another node. I create the array and it is filled with members from aTimer structure. Then when i want to access this data i can simply use TimerInfos.Timers[1].onTime =1. the array contains onTimes offTimes and status variables for each entry of the array. this all works great. So i tried to add another variable to aTimers class called state. I can access the data by TimerInfos.Timers[0-4].state. However when the structure is sent to the other node i dont get the values that TimerInfos.Timers[0thru4].state from the sending node its always just 0 on the receiver . Can anyone see anything wrong in the code. Is the state variable i declared in aTimer being entered into Timers[] and sent to the other node?? BTW other than not being able to get the data i THINK is being sent to the other node, i get all of the other data that sent.

packetDefinitions.h (26.7 KB)

i figured it out

had to add a function to copy the data into the array,

bool copyStates(byte timerNumber, byte states) {
Timers[timerNumber].state =states;

}

then had to add code to chose the right entry to add to,

for (byte i = 0; i < sizeof(Timers) / sizeof(Timers[0]); i++) {
changes |= copyStates(i, in->Timers*.state);*

  • }*
  • return changes;*
  • }*