You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mosquitto/examples/temperature_conversion/main.cpp

24 lines
319 B
C++

#include "temperature_conversion.h"
int main(int argc, char *argv[])
{
class mqtt_tempconv *tempconv;
int rc;
mosqpp::lib_init();
tempconv = new mqtt_tempconv("tempconv", "localhost", 1883);
while(1){
rc = tempconv->loop();
if(rc){
tempconv->reconnect();
}
}
mosqpp::lib_cleanup();
return 0;
}