1 command registers
- relaySet[3]; bool
- calibSet[6]; unsigned int
- relayAutoTimer[3]; unsigned long
- relayAutoEnergy[3]; unsigned long
2 read registers
- relayGet[3];
- powerGet[MAX_PARAMS];
- relayAutoTimer[3]; same for read
- calibSet[6]; same for read;
- energyGet[3]; unsigned long;
data send type
upto 4 byte data
byte A= (a&0x000000FF); bool & smaller ints
byte B= (a&0x0000FF00)>>8; int (voltages and current multiplied by 100) / by 100 to convert it into f
byte C= (a&0x00FF0000)>>16;
byte D= (a&0xFF000000)>>24; // unsigned int for timer and energy