buglwIP - 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:  

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

Mike Protts <mikeprotts>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by _258125 (Posted a comment)
  • -email is unavailable- added by mikeprotts (Submitted the item)
  •  

    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

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code