{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7071","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7071/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7071/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7071/events","html_url":"https://github.com/ARMmbed/mbed-os/issues/7071","id":328108886,"node_id":"MDU6SXNzdWUzMjgxMDg4ODY=","number":7071,"title":"LWIP MQTT","user":{"login":"pilotak","id":8101753,"node_id":"MDQ6VXNlcjgxMDE3NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/8101753?v=4","gravatar_id":"","url":"https://api.github.com/users/pilotak","html_url":"https://github.com/pilotak","followers_url":"https://api.github.com/users/pilotak/followers","following_url":"https://api.github.com/users/pilotak/following{/other_user}","gists_url":"https://api.github.com/users/pilotak/gists{/gist_id}","starred_url":"https://api.github.com/users/pilotak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilotak/subscriptions","organizations_url":"https://api.github.com/users/pilotak/orgs","repos_url":"https://api.github.com/users/pilotak/repos","events_url":"https://api.github.com/users/pilotak/events{/privacy}","received_events_url":"https://api.github.com/users/pilotak/received_events","type":"User","site_admin":false},"labels":[{"id":427713129,"node_id":"MDU6TGFiZWw0Mjc3MTMxMjk=","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/mirrored","name":"mirrored","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-31T11:56:26Z","updated_at":"2018-06-01T15:50:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Description\r\nHello i'm trying to connect with LWIP stack and its MQTT app (which look perfect as it uses callbacks) to server. The problem is that it doesn't compile because `\"mbed-os\\features\\FEATURE_LWIP\\lwip-interface\\lwip\\src\\apps\\mqtt\\lwip_mqtt.c` doesn't get included.\r\n\r\n```cpp\r\n#include \"mbed.h\"\r\n#include \"lwip/apps/mqtt.h\"\r\n\r\nmqtt_client_t static_client;\r\n\r\nvoid example_do_connect(mqtt_client_t *client) {\r\n    struct mqtt_connect_client_info_t ci;\r\n    err_t err;\r\n    ip_addr_t server;\r\n\r\n    memset(&ci, 0, sizeof(ci));\r\n\r\n    ci.client_id = \"lwip_test\";\r\n    ci.client_user = \"xxx\";\r\n    ci.client_pass = \"xxx\";\r\n\r\n    ip4_addr_set_u32(&server, ipaddr_addr(\"12.34.56.78\"));\r\n    err = mqtt_client_connect(client, &server, 1884, mqtt_connection_cb, 0, &ci);\r\n\r\n    if (err != ERR_OK) {\r\n        printf(\"mqtt_connect return %d\\n\", err);\r\n    }\r\n}\r\n\r\n```\r\n\r\nhere is the error\r\n```\r\nundefined reference to `mqtt_client_connect'\r\n```\r\n\r\nI have to say that there is a big lack of documentation regarding LWIP, I know that there are TXT files but those are only functions how to use and not a whole mbed example. Or do i need to look somewhere else?\r\n\r\nusing latest OS `24cebbaec3bd9fdf6f3c77c315c54482d3fa867d`\r\n\r\n### Issue request type\r\n[X] Question  \r\n[ ] Enhancement  \r\n[ ] Bug  \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/393922958","html_url":"https://github.com/ARMmbed/mbed-os/issues/7071#issuecomment-393922958","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7071","id":393922958,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzkyMjk1OA==","user":{"login":"ciarmcom","id":14747535,"node_id":"MDQ6VXNlcjE0NzQ3NTM1","avatar_url":"https://avatars0.githubusercontent.com/u/14747535?v=4","gravatar_id":"","url":"https://api.github.com/users/ciarmcom","html_url":"https://github.com/ciarmcom","followers_url":"https://api.github.com/users/ciarmcom/followers","following_url":"https://api.github.com/users/ciarmcom/following{/other_user}","gists_url":"https://api.github.com/users/ciarmcom/gists{/gist_id}","starred_url":"https://api.github.com/users/ciarmcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciarmcom/subscriptions","organizations_url":"https://api.github.com/users/ciarmcom/orgs","repos_url":"https://api.github.com/users/ciarmcom/repos","events_url":"https://api.github.com/users/ciarmcom/events{/privacy}","received_events_url":"https://api.github.com/users/ciarmcom/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T15:50:27Z","updated_at":"2018-06-01T15:50:27Z","author_association":"MEMBER","body":"ARM Internal Ref: MBOTRIAGE-4"}}
{"actor":{"display_login":"ciarmcom"}}