Skip to content

Conversation

@sarenameas
Copy link
Contributor

@sarenameas sarenameas commented Aug 13, 2020

  • Fix doxygen warnings throughout mqtt documentation.
  • Add documentation to mqtt_lightweight.c static functions where missing (this was a warning)
  • Add all words to the lexicon.txt
  • Opportunistically Fix other code warnings found in the unit test and mqtt.c
  • Ignore private functions in mqtt_state.h and .c

Doxygen configs and other infrastructure is to be in a separate PR.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Add documentation to mqtt_lightweight.c
Add all words to the lexicon.txt
@codecov-commenter
Copy link

codecov-commenter commented Aug 13, 2020

Codecov Report

Merging #1122 into development will increase coverage by 2.30%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #1122      +/-   ##
===============================================
+ Coverage        96.54%   98.85%   +2.30%     
===============================================
  Files                9        4       -5     
  Lines             5643     1309    -4334     
  Branches           641      393     -248     
===============================================
- Hits              5448     1294    -4154     
+ Misses               9        0       -9     
+ Partials           186       15     -171     
Impacted Files Coverage Δ
libraries/standard/mqtt/src/mqtt.c 99.48% <ø> (+5.06%) ⬆️
libraries/standard/mqtt/src/mqtt_lightweight.c 97.42% <ø> (+2.90%) ⬆️
libraries/standard/mqtt/src/mqtt_state.c 98.46% <ø> (+2.52%) ⬆️
libraries/standard/http/src/http_client.c 100.00% <100.00%> (+12.51%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update def655c...3a31641. Read the comment docs.

typedef void (* MQTTEventCallback_t )( MQTTContext_t * pContext,
MQTTPacketInfo_t * pPacketInfo,
MQTTDeserializedInfo_t * pDeserializedInfo );
typedef void (* MQTTEventCallback_t )( struct MQTTContext * pContext,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no misra issues or compiler warnings with this change.

*/
#define MQTT_PUBLISH_ACK_PACKET_SIZE ( 4UL )

struct MQTTFixedBuffer;
Copy link
Contributor Author

@sarenameas sarenameas Aug 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doxygen does not easily support forward declarations like this, so i changed to our original style of typedef struct mystruct {} mystruct_t;

static size_t getRemainingLength( TransportRecv_t recvFunc,
NetworkContext_t * pNetworkContext );

/**
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this is copied from the v4_beta docs with updates for new parameters and return code names.

muneebahmed10
muneebahmed10 previously approved these changes Aug 17, 2020
muneebahmed10
muneebahmed10 previously approved these changes Aug 17, 2020
leegeth
leegeth previously approved these changes Aug 18, 2020
cobusve
cobusve previously approved these changes Aug 18, 2020
@sarenameas sarenameas dismissed stale reviews from cobusve, leegeth, and muneebahmed10 via 3a31641 August 18, 2020 18:41
@sarenameas sarenameas merged commit efeb64e into aws:development Aug 18, 2020
@sarenameas sarenameas deleted the mqtt/doxygen_code_warnings branch August 18, 2020 19:24
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 27, 2020
Ignore private functions in mqtt_state.h and .c
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 28, 2020
Ignore private functions in mqtt_state.h and .c
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 31, 2020
Ignore private functions in mqtt_state.h and .c
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Sep 1, 2020
Ignore private functions in mqtt_state.h and .c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants