```bash
```c
/lib/modules/4.1.15 # ./mqtt-example
main|159 :: mqtt example
establish tcp connection with server(host='g1uqs46Vt1T.iot-as-mqtt.cn-shanghai.aliyuncs.com', port=[1883]) success to establish tcp, fd=3
> {
> "id": "1",
> "version": "1.0",
> "params": [
> {
> "attrKey": "SYS_LP_SDK_VERSION",
> "attrValue": "3.0.1",
> "domain": "SYSTEM"
> },
> {
> "attrKey": "SYS_SDK_LANGUAGE",
> "attrValue": "C",
> "domain": "SYSTEM"
> }
> ],
> "method": "thing.deviceinfo.update"
> }
> {
> "id": "2",
> "params": {
> "version": "app-1.0.0-20180101.1000"
> }
> }
> {
> "message": "hello!"
> }
example_event_handle|128 :: msg->event_type : 9 example_event_handle|128 :: msg->event_type : 9 example_event_handle|128 :: msg->event_type : 3
< { < "message": "hello!" < }
example_message_arrive|061 :: Message Arrived: example_message_arrive|062 :: Topic : /g1uqs46Vt1T/2021_0111/user/get example_message_arrive|063 :: Payload: {"message":"hello!"} example_message_arrive|064 ::
> {
> "message": "hello!"
> }
注释了这句之后:// pthread_join (id_iaq, NULL);//lianghongxiao
/lib/modules/4.1.15 # ./mqtt-exmaple
-/bin/sh: ./mqtt-exmaple: not found
/lib/modules/4.1.15 # ./mqtt-example
main|159 :: mqtt example
establish tcp connection with server(host='g1uqs46Vt1T.iot-as-mqtt.cn-shanghai.aliyuncs.com'
再注释了这句之后:// HAL_ThreadCreate(&id_iaq, pthread_iaq,NULL,0);//lianghongxiao
main|159 :: mqtt example
establish tcp connection with server(host='g1uqs46Vt1T.iot-as-mqtt.cn-shanghai.aliyuncs.com', port=[1883])
success to establish tcp, fd=3
> {
> "id": "1",
> "version": "1.0",
> "params": [
> {
> "attrKey": "SYS_LP_SDK_VERSION",
> "attrValue": "3.0.1",
> "domain": "SYSTEM"
> },
> {
> "attrKey": "SYS_SDK_LANGUAGE",
> "attrValue": "C",
> "domain": "SYSTEM"
> }
> ],
> "method": "thing.deviceinfo.update"
> }
> {
> "id": "2",
> "params": {
> "version": "app-1.0.0-20180101.1000"
> }
> }
> {
> "message": "hello!"
> }
example_event_handle|128 :: msg->event_type : 9
example_event_handle|128 :: msg->event_type : 3
example_event_handle|128 :: msg->event_type : 9
< {
< "message": "hello!"
< }
example_message_arrive|061 :: Message Arrived:
example_message_arrive|062 :: Topic : /g1uqs46Vt1T/2021_0111/user/get
example_message_arrive|063 :: Payload: {"message":"hello!"}
example_message_arrive|064 ::
把字符内容变成temp后:char *payload = temp;//lianghongxiao
main|159 :: mqtt example
establish tcp connection with server(host='g1uqs46Vt1T.iot-as-mqtt.cn-shanghai.aliyuncs.com', port=[1883])
success to establish tcp, fd=3
> {
> "id": "1",
> "version": "1.0",
> "params": [
> {
> "attrKey": "SYS_LP_SDK_VERSION",
> "attrValue": "3.0.1",
> "domain": "SYSTEM"
> },
> {
> "attrKey": "SYS_SDK_LANGUAGE",
> "attrValue": "C",
> "domain": "SYSTEM"
> }
> ],
> "method": "thing.deviceinfo.update"
> }
> {
> "id": "2",
> "params": {
> "version": "app-1.0.0-20180101.1000"
> }
> }
example_event_handle|128 :: msg->event_type : 9
example_event_handle|128 :: msg->event_type : 3
example_message_arrive|061 :: Message Arrived:
example_message_arrive|062 :: Topic : /g1uqs46Vt1T/2021_0111/user/get
example_message_arrive|063 :: Payload:
example_message_arrive|064 ::