Commits

Roger Light  committed a626ad6

Connect to pachube before starting loop.

  • Participants
  • Parent commits a727149

Comments (0)

Files changed (1)

File src/mqtt2pachube.c

 	mosquitto_connect(mosq, config.mqtt_host, config.mqtt_port, 60, true);
 	mosq_socket = mosquitto_socket(mosq);
 
+	pachube_socket = pachube_connect(&config);
+
 	while(1){
 		if(mosq_socket > pachube_socket){
 			max_socket = mosq_socket;