# header Struct Reference

`#include <header.h>`

## Data Fields
unsigned int | sequence
unsigned char | version
unsigned char | flags
unsigned char | mac [8]

## Detailed Description

Common Message Header

## Field Documentation

unsigned char flags

Flags to indicate various stuff; dependent on application. One might be for a pending firmware update. For battery powered devices one might indicate low batt.

unsigned char mac[8]

MAC Address of sender (for messages from device to server) or of destination (for messages from server to device). Mainly used for messages going through a gateway (e.g. Zigbee to Ethernet) so that the server receiving the message knows who sent the message. While this can be obtained by querying the network, it's faster to put it in the message

unsigned int sequence

Application level sequence number, used to track response from the server etc. LSB first

unsigned char version

Protocol version. If message protocol changes then use a different number for version and if/then on receiver accordingly

The documentation for this struct was generated from the following file:

- Messages/header.h

All Data Structures Files Functions Variables Defines