Clipsal C-Bus Guia do Utilizador Página 46

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 60
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 45
cbus Documentation, Release 0.1-dev
Applications
Running ontop of the C-Bus protocols are applications.
This package provides encoders and decoders for application-level messages on the C-Bus network.
Application messages inside of C-Bus packets are called “Specific Application Language”, or SALs for short. A
packet may contain many SALs for a single application, up to the MTU of the C-Bus network.
Clock and Timekeeping Application
The Clock and Timekeeping Application is used to provide access to date and time information to CBus units.
This is used for example in conjunction with programmable units that act differently depending on the time or date,
and with touchscreen units that may display the time on their screens.
Please refer to this document in conjunction with the Clock and Timekeeping Application Guide published by Clipsal.
class cbus.protocol.application.clock.ClockApplication
Bases: object
This class is called in the cbus.protocol.applications.APPLICATIONS dict in order to describe how to decode
clock and timekeeping application events recieved from the network.
Do not call this class directly.
classmethod decode_sal(data, packet)
Decodes a clock and timekeeping application packet and returns it’s SAL(s).
class cbus.protocol.application.clock.ClockSAL(packet=None)
Bases: object
Base type for clock and timekeeping application SALs.
This should not be called directly by your code!
Use one of the subclasses of cbus.protocol.clock.ClockSAL instead.
classmethod decode(data, packet)
Decodes a clock broadcast application packet and returns it’s SAL(s).
Parameters
data (str) – SAL data to be parsed.
packet (cbus.protocol.base_packet.BasePacket) The packet that this data is associated
with.
Returns The SAL messages contained within the given data.
Return type list of cbus.protocol.application.clock.ClockSAL
encode()
Encodes the SAL into a format for sending over the C-Bus network.
class cbus.protocol.application.clock.ClockUpdateSAL(packet, variable, val)
Bases: cbus.protocol.application.clock.ClockSAL
Clock update event SAL.
Informs the network of the current time.
Creates a new SAL Clock update message.
42 Chapter 8. libcbus module index
Vista de página 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 59 60

Comentários a estes Manuais

Sem comentários