Skip to content

Commit

Permalink
Improve example.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed May 15, 2016
1 parent dfeb2f9 commit 030a217
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions examples/temperature_conversion/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ int main(int argc, char *argv[])
mosqpp::lib_init();

tempconv = new mqtt_tempconv("tempconv", "localhost", 1883);

while(1){
rc = tempconv->loop();
if(rc){
tempconv->reconnect();
}
}
tempconv->loop_forever();

mosqpp::lib_cleanup();

Expand Down

0 comments on commit 030a217

Please sign in to comment.