eibd-client-simple-0.0.3: EIBd Client

Safe HaskellNone
LanguageHaskell2010

EIBd.Client.Connection

Contents

Synopsis

Connection

data Connection Source

It is possible to connect to a local EIBd server instance via unix socket or remotely via a TCP socket.

connection <- connectLocal "/tmp/eib"

or

connection <- connectRemote "eibd.address.here" 6720

Instances

connectRemote :: B.ByteString -> Word16 -> IO Connection Source

Connect to an EIBd server via a TCP Socket.

connectLocal :: B.ByteString -> IO Connection Source

Connect to an EIBd server via a Unix Socket.

defaultPort :: Word16 Source

Default EIBd port

Messaging

data Message Source

Message (very closely related to a CEMI frame)

Instances

recvMessage :: Connection -> IO Message Source

Fetch a message from the EIBd instance.

sendMessage :: Connection -> GroupAddress -> Word8 -> APCI -> B.ByteString -> IO Bool Source

Send a message to the EIBd instance.

sendMessage' :: Connection -> Message -> IO Bool Source

Alternative to "sendMessage".

Group Messaging

data GroupMessage Source

A special kind of message targeting only communication groups.