Searched refs:topic_len (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/tests/net/lib/mqtt/v3_1_1/mqtt_client/src/ |
D | main.c | 209 uint16_t topic_len, var_len = 0; in broker_validate_packet() local 212 topic_len = sys_get_be16(buf); in broker_validate_packet() 215 var_len = topic_len + 2; in broker_validate_packet() 218 var_len = topic_len + 4; in broker_validate_packet() 222 var_len = topic_len + 4; in broker_validate_packet() 228 zassert_equal(topic_len, strlen(get_mqtt_topic()), "Invalid topic length"); in broker_validate_packet() 229 zassert_mem_equal(buf + 2, get_mqtt_topic(), topic_len, "Invalid topic"); in broker_validate_packet() 237 memcpy(reply_ack + 2, buf + topic_len + 2, 2); in broker_validate_packet() 241 if (topic_len == strlen(broker_topic) && in broker_validate_packet() 242 memcmp(buf + 2, broker_topic, topic_len) == 0) { in broker_validate_packet() [all …]
|
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/ |
D | main.c | 120 static int publish_message(const char *topic, size_t topic_len, uint8_t *payload, in publish_message() argument 131 msg.message.topic.topic.size = topic_len; in publish_message()
|