Lines Matching refs:payloadlen
259 size_t payloadlen = 0; in mqtt_connect() local
275 payloadlen = ulen + plen + MQTT_CLIENTID_LEN + 2; in mqtt_connect()
279 payloadlen += 2; in mqtt_connect()
281 payloadlen += 2; in mqtt_connect()
284 remain_pos = mqtt_encode_len(remain, payloadlen + 10); in mqtt_connect()
287 packetlen = payloadlen + 10 + remain_pos + 1; in mqtt_connect()
517 size_t payloadlen; in mqtt_publish() local
532 payloadlen = strlen(payload); in mqtt_publish()
534 payloadlen = (size_t)postfieldsize; in mqtt_publish()
540 remaininglength = payloadlen + 2 + topiclen; in mqtt_publish()
558 memcpy(&pkt[i], payload, payloadlen); in mqtt_publish()
559 i += payloadlen; in mqtt_publish()