Blame view

src/connectionstatus.h 871 Bytes
51becbde   Peter M. Groen   Committed the ent...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  #ifndef OSDEV_COMPONENTS_MQTT_CONNECTIONSTATUS_H
  #define OSDEV_COMPONENTS_MQTT_CONNECTIONSTATUS_H
  
  // std
  #include <ostream>
  
  namespace osdev {
  namespace components {
  namespace mqtt {
  
  /*!
   *  \brief  Enumeration for MQTT connection Status
   */
  enum class ConnectionStatus
  {
      Disconnected,               ///< Client is disconnected.
      DisconnectInProgress,       ///< Client is being disconnected.
      ConnectInProgress,          ///< Client is being connected.
      ReconnectInProgress,        ///< Client tries to reconnect.
      Connected,                  ///< Client is connected.
  };
  
  /*!
   *  \brief  Stream operator for the connection status
   */
  std::ostream& operator<<(std::ostream &os, ConnectionStatus rhs);
  
  }       // End namespace mqtt
  }       // End namespace components
  }       // End namespace osdev
  
  #endif  // OSDEV_COMPONENTS_MQTT_CONNECTIONSTATUS_H