main.cpp 265 B

1234567891011121314151617
  1. #include "temperature_conversion.h"
  2. int main(int argc, char *argv[])
  3. {
  4. class mqtt_tempconv *tempconv;
  5. int rc;
  6. mosqpp::lib_init();
  7. tempconv = new mqtt_tempconv("tempconv", "localhost", 1883);
  8. tempconv->loop_forever();
  9. mosqpp::lib_cleanup();
  10. return 0;
  11. }