mqtt-0.1.1.0: An MQTT protocol implementation.

Copyright(c) Lars Petersen 2016
LicenseMIT
Maintainerinfo@lars-petersen.net
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Network.MQTT.Message

Contents

Description

 

Synopsis

Message

Topic

data Topic Source #

According to the MQTT specification a topic

  • must not be empty
  • must not contain +, # or \NUL characters

Instances

Filter

data Filter Source #

According to the MQTT specification a filter

  • must not be empty
  • must not contain a \NUL character

Level

data Level Source #

A Level represents a single path element of a Topic or a Filter.

Instances

multiLevelWildcard :: Level Source #

The # path element. It must only appear at the end of a Filter.

singleLevelWildcard :: Level Source #

The + path element. It may appear anywhere within a Filter.

startsWithDollar :: Level -> Bool Source #

Returns True iff the Level starts with $.

QoS

data QoS Source #

The quality of service defines the guarantees given wrt to message reception.

Constructors

QoS0

Message delivery is not guaranteed.

QoS1

Message is guaranteed to be delivered at least once.

QoS2

Message is guaranteed to be delivered exactly once.

Instances

Bounded QoS Source # 

Methods

minBound :: QoS #

maxBound :: QoS #

Enum QoS Source # 

Methods

succ :: QoS -> QoS #

pred :: QoS -> QoS #

toEnum :: Int -> QoS #

fromEnum :: QoS -> Int #

enumFrom :: QoS -> [QoS] #

enumFromThen :: QoS -> QoS -> [QoS] #

enumFromTo :: QoS -> QoS -> [QoS] #

enumFromThenTo :: QoS -> QoS -> QoS -> [QoS] #

Eq QoS Source # 

Methods

(==) :: QoS -> QoS -> Bool #

(/=) :: QoS -> QoS -> Bool #

Ord QoS Source # 

Methods

compare :: QoS -> QoS -> Ordering #

(<) :: QoS -> QoS -> Bool #

(<=) :: QoS -> QoS -> Bool #

(>) :: QoS -> QoS -> Bool #

(>=) :: QoS -> QoS -> Bool #

max :: QoS -> QoS -> QoS #

min :: QoS -> QoS -> QoS #

Show QoS Source # 

Methods

showsPrec :: Int -> QoS -> ShowS #

show :: QoS -> String #

showList :: [QoS] -> ShowS #

TrieValue QoS Source # 
data TrieNode QoS Source # 

Retain

newtype Retain Source #

Constructors

Retain Bool 

Payload

Packet

ClientPacket

ServerPacket

PacketIdentifier

ClientIdentifier

newtype ClientIdentifier Source #

Constructors

ClientIdentifier Text 

Username

Password

CleanSession

SessionPresent

RejectReason

Duplicate

KeepAliveInterval

Other (internal) exports