|
|
| version 1.2.2.1, 2012/02/01 16:18:04 | version 1.2.2.2, 2012/04/11 15:08:27 |
|---|---|
| Line 53 Publish(int sock) | Line 53 Publish(int sock) |
| int siz = 0; | int siz = 0; |
| siz = mqtt_msgPUBLISH(args->msg, AIT_GET_STR(&args->Publish), args->MsgID, args->Dup, | siz = mqtt_msgPUBLISH(args->msg, AIT_GET_STR(&args->Publish), args->MsgID, args->Dup, |
| args->QoS, args->Retain, AIT_GET_PTR2(&args->Value), AIT_LEN(&args->Value)); | args->QoS, args->Retain, AIT_ADDR(&args->Value), AIT_LEN(&args->Value)); |
| if (siz == -1) { | if (siz == -1) { |
| printf("Error:: msgPUBLISH #%d - %s\n", mqtt_GetErrno(), mqtt_GetError()); | printf("Error:: msgPUBLISH #%d - %s\n", mqtt_GetErrno(), mqtt_GetError()); |
| return -1; | return -1; |