temperature_conversion.h 402 B

1234567891011121314151617
  1. #ifndef TEMPERATURE_CONVERSION_H
  2. #define TEMPERATURE_CONVERSION_H
  3. #include <mosquittopp.h>
  4. class mqtt_tempconv : public mosqpp::mosquittopp
  5. {
  6. public:
  7. mqtt_tempconv(const char *id, const char *host, int port);
  8. ~mqtt_tempconv();
  9. void on_connect(int rc);
  10. void on_message(const struct mosquitto_message *message);
  11. void on_subscribe(int mid, int qos_count, const int *granted_qos);
  12. };
  13. #endif