version 1.1.2.7, 2012/01/05 13:09:05
|
version 1.1.2.8, 2012/01/24 10:18:45
|
Line 239 main(int argc, char **argv)
|
Line 239 main(int argc, char **argv)
|
} |
} |
|
|
printf("Connected ... "); |
printf("Connected ... "); |
|
ConnectClient(sock); ConnectClient(sock); |
switch ((ret = ConnectClient(sock))) { |
switch ((ret = ConnectClient(sock))) { |
case -1: |
case -1: |
printf(">> FAILED!\n"); |
printf(">> FAILED!\n"); |
Line 262 main(int argc, char **argv)
|
Line 263 main(int argc, char **argv)
|
printf(">> DENIED.\n"); |
printf(">> DENIED.\n"); |
break; |
break; |
} |
} |
|
sleep(1); |
|
|
if (ret == MQTT_RETCODE_ACCEPTED) { |
if (ret == MQTT_RETCODE_ACCEPTED) { |
ret = !(Publish(sock) == args->MsgID); |
ret = !(Publish(sock) == args->MsgID); |