lwIP - A Lightweight TCP/IP stack - Bugs: bug #58468, mqtt cannot use mqtt_client static...
You are not allowed to post comments on this tracker with your current authentication level.
bug #58468: mqtt cannot use mqtt_client static allocation based on documented example
Submitter: | Mike Protts <mikeprotts> | ||
Submitted: | Sun 31 May 2020 10:13:05 AM UTC | ||
Category: | apps | Severity: | 3 - Normal |
Item Group: | Change Request | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open | Planned Release: | None |
lwIP version: | git head |
Spam posted by _258125 | |
Sun 31 May 2020 10:13:05 AM UTC, original submission:
|
Mike Protts <mikeprotts> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
Powered by Savane 3.13-4448.
Corresponding source code
This is a change between 2.0.3 and 2.1.7. After upgrading, the following compiler error is seen:
error: storage size of 'leela_mqtt_client' isn't known
static mqtt_client_t leela_mqtt_client;
This is because the structure is now defined in mqtt_priv.h (line 69) instead of mqtt.h (176), and including the former resolves the problem. However I think the static example should work as previously, without needing the extra include file.
Mike