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

Submitted by:  Mike Protts <mikeprotts>
Submitted on:  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>

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.6