简体   繁体   中英

Send MQTT Connect Packet over TCP in c

I am trying to send MQTT connect packets over TCP. I am using windows platform and using VC express edition. I Have successfully implemented Basic server-client application over TCP. However i have no idea about how to send mqtt packets over TCP as i am fairly new in socket programming. Any help would be great!!

Before starting you should know what you are dealing with. First study how the MQTT protocol works, then proceed to the programming aspect of MQTT. Although you need to understand various other aspects of socket programming before proceeding to MQTT. I'll mention a few resources to help you out.

For Documentation & Specification

MQTT Website

MQ Telemetry Transport (MQTT) V3.1 Protocol Specification

Paho - MQTT client library for C

Paho - MQTT client library for C (Documentation)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM