User Tools

Site Tools


packet_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
packet_api [2014/01/01 12:37] – external edit 127.0.0.1packet_api [2014/01/01 14:26] – [Read header] breaker27
Line 1: Line 1:
 ====== Introduction ====== ====== Introduction ======
  
-The packet and message format is defined in an XML file. Header files with access functions are generated from it. If you write or change a device firmware, use solely these functions to create and interpret the packet data easily.+The packet and message format is defined in an XML file. Header files with access functions are generated from it and stored under the "src_common" directory. If you write or change a device firmware, use solely these functions to create and interpret the packet data easily.
  
 Please read about the [[http://www.smarthomatic.org/basics/communication_protocol.html|concept]] first before you continue. Please read about the [[http://www.smarthomatic.org/basics/communication_protocol.html|concept]] first before you continue.
Line 96: Line 96:
  
 ''uint32_t senderid = pkg_header_get_senderid();\\ ''uint32_t senderid = pkg_header_get_senderid();\\
-uint32_t packetcounter = pkg_header_get_packetcounter();'' +uint32_t packetcounter = pkg_header_get_packetcounter();\\ 
 +MessageTypeEnum messagetype = pkg_header_get_messagetype();''
 ===== Read header extension ===== ===== Read header extension =====
  
packet_api.txt · Last modified: 2014/07/31 11:18 by breaker27