![]() | ![]() | ![]() | BLib Reference Manual | ![]() |
---|
BProtocol — definiton of the Blinkenlights Network Protocol
#define MAGIC_MCU_SETUP #define MAGIC_MCU_FRAME #define MAGIC_MCU_DEVCTRL #define MAGIC_BLFRAME #define MAGIC_BLFRAME_256 #define MAGIC_HEARTBEAT #define MCU_LISTENER_PORT #define MCU_ID_ANY #define MCU_DEVCTRL_OFF #define MCU_DEVCTRL_ON #define B_HEARTBEAT_PORT #define B_HEARTBEAT_INTERVAL
The bprotocol.h header file defines the Blinkenlights Network Protocol. It contains structure definitions for the different network packets as well as defines for magic numbers.
This header file doesn't use any GLib types to make it possible to include it from applications that can not or don't want to use BLib. As a user of BLib you don't need to care about the details of the protocol described here. Use the BSender and BReceiver instead.
#define MAGIC_MCU_DEVCTRL
The magic number that identifies a device control packet.
#define MAGIC_BLFRAME
The magic number that identifies a frame packet in the old Blinkenlights protocol. BLib doesn't support this old version.
#define MAGIC_BLFRAME_256
The magic number that identifies a frame packet in an extension to the old Blinkenlights protocol. BLib doesn't support this old version.
#define MAGIC_HEARTBEAT
The magic number that identifies a heartbeat package as used with the BlinkenProxy protocol.
#define MCU_ID_ANY
Use this value in a setup packet to address all listening matrix control units.
#define MCU_DEVCTRL_OFF
Use this value in a device control packet to switch a device off.
#define MCU_DEVCTRL_ON
Use this value in a device control packet to switch a device on.
#define B_HEARTBEAT_PORT
The default port number for BlinkenProxy heartbeat packets.
<< Blinkenlights Network Protocol | BPacket >> |