mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-25 19:34:16 +08:00
Initial contribution.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user