Research Article

Cross-Platform Android/iOS-Based Smart Switch Control Middleware in a Digital Home

Algorithm 3

Struct
  unsigned char MAC[]; // MAC address of the device
  unsigned int device_type; // device type
  unsigned int Manufr; // manufacturer logo, 2 bits
  unsigned char VER; // software version of the device
  unsigned char status; // status bit of the device being controlled
  unsigned char NO[]; // BCD code of the device
  YYMMDDXXXXXX
Device;