1
0
mirror of https://github.com/FreeRTOS/coreMQTT synced 2025-07-04 02:37:06 +08:00

130 Commits

Author SHA1 Message Date
Gordon Wang
3f74c048c9 Create development branch 2020-04-10 11:25:11 -07:00
Gordon Wang
66e0564957 Complete coverage of iot_mqtt_lightweight_api.c (#792) 2020-02-11 16:06:03 -08:00
Gordon Wang
da76fbff4b Complete coverage of iot_mqtt_serialize.c (#787) 2020-02-11 11:26:50 -08:00
Gordon Wang
d87bad955e Complete coverage of iot_mqtt_helper.c (#786) 2020-02-10 15:29:53 -08:00
Gordon Wang
ecf07347b5 Only send PINGREQ when connection is idle (#778) 2020-02-10 10:20:08 -08:00
Muneeb Ahmed
08d31b823d Fix platform test failure (#783) 2020-02-10 10:11:06 -08:00
Muneeb Ahmed
e64e3fdee7 Move dependent MQTT tests to platform group (#782)
* Add reentrant tests to platform group

* Remove reentrancy tests from system

* Move SingleThreaded test to platform group

* Move SubscriptionReferences test to platform group
2020-02-07 16:16:56 -08:00
abhidixi11
cf2c232145 Feat: Refactor MQTT Light Weight API code (#772)
* Feat: Refactor MQTT Light Weight API code

Light Weight API code has been factored out and put in separate files.
2020-02-04 15:21:47 -08:00
Gordon Wang
34a74ccfdc Increase test coverage of iot_mqtt_operation.c (#771) 2020-02-03 16:50:24 -08:00
Gordon Wang
9667d656ac Increase coverage of iot_mqtt_network.c (#770) 2020-02-03 12:28:29 -08:00
Gordon Wang
17e9a7c713 Increase coverage in iot_mqtt_api.c (#769) 2020-01-31 20:31:08 -08:00
Gordon Wang
a0e0001417 Re-enable checks for resource allocation failure (#768) 2020-01-31 11:58:15 -08:00
Gordon Wang
16589269f9 Complete coverage of iot_mqtt_subscription.c (#762) 2020-01-30 13:30:18 -08:00
Gordon Wang
e6c4b71266 Complete coverage of iot_mqtt_validate.c (#757) 2020-01-30 09:44:21 -08:00
Muneeb Ahmed
2df3f9a34d Address MISRA Rule 11.2 violations (#730) 2020-01-23 10:56:46 -08:00
abhidixi11
acd02af830 fix: MISRA 15.1 (goto) violations - part 1 (#717)
* fix: MISRA 15.1 (goto) violations - part 1

Remove gotos, fix a unit test failure.

* fix: MISRA 15.1 (goto) violations - part 1

Remove gotos, fix a unit test failure.

* fix: MQTT remaining length test.

Three bytes need to have continuation bit set.

* Update iot_mqtt_network.c
2020-01-13 18:00:54 -08:00
abhidixi11
7b075bf0b8 fix: Increase MQTT test code coverage. (#713)
* fix: Increase MQTT test code coverage.

Code coverage for file: iot_mqtt_network.c
2020-01-10 15:40:05 -08:00
Muneeb Ahmed
94887b2f35 Reduce complexity in MQTT serialize and API (#701)
* Refactor Wait and PublishAsync API functions

* Refactor _IotMqtt_DeserializePublish

* Move publish setup checks to iot_mqtt_validate.c
2020-01-09 11:23:42 -08:00
abhidixi11
3fefcfda96 fix: IotMqtt_Wait Error Handling and increased MQTT code coverage
* fix: "Fixed error handling case in IotMqtt_Wait and increased MQTT code coverage"
2020-01-07 11:37:43 -08:00
abhidixi11
931b47dbd0 fix: MQTT serializer unit tests. (#688) 2019-12-17 13:38:36 -08:00
Gordon Wang
5b137613ac Refactor to reduce complexity (#687)
* Refactor _IotMqtt_DeserializeSuback

* Refactor find operation

* Refactor QoS and string check

* Fix CBMC proof for new function name

* Refactor subscription list validation
2019-12-16 16:41:54 -08:00
leegeth
8e522532d8 Remove macros hiding the control flow (#681) 2019-12-12 17:06:41 -05:00
leegeth
5fb4243249 Spell check fixes (#650) 2019-11-20 19:36:21 -05:00
abhidixi11
696ac4b32d Unit tests for Lightweight serializer API. (#643)
feature: Lightweight serializer API for MQTT.

MQTT serializer API changes to support lightweight single threaded app.

CSDK MQTT Library provides stateful MQTT API that makes use of taskpool
and network abstraction. The library makes use dynamic memory
allocations and makes use of multiple threads or tasks.
Embedded applications running on microcontroller may want to
use single threaded model to run MQTT.
The API changes enable application developers to use MQTT serializer
and deserializer APIs without use of taskpool and network abstraction.
The API does no allocate any dynamic memory, therefore application can
make use of statically allocated memory. Application can implement its
own state machine and make use of any network interface like sockets
to handle MQTT messages.
2019-11-14 18:13:43 -08:00
Gordon Wang
b788232955 Remove void* network pointers (#622) 2019-10-31 13:51:02 -07:00
Sarena Meas
19858bdd30 Update MQTT System tests for connection retries (#620)
* Update MQTT system tests for connection retry.
- In Amazon FreeRTOS the number of retries is set to 3.
- In the CSDK the number of retries is the default of 1,
  since there are no failures in these tests' connections.
- Update doxygen for new test config IOT_TEST_MQTT_CONNECT_RETRY_COUNT
2019-10-30 14:08:14 -07:00
Gordon Wang
0fc51510e5 Move socket metrics to single file (#618) 2019-10-30 10:29:38 -07:00
Gary Wicker
01937cbbed Use #defines for max client ID & "remove all subscriptions" constants (#608)
Use #defines for max client ID & "remove all subscriptions" constants.
2019-10-19 08:55:54 -07:00
Gordon Wang
cc126d96ef Add build check script (#592) 2019-10-10 10:02:04 -07:00
Gordon Wang
d9aaaec4c4 Rearrange directories (#589) 2019-10-07 15:55:03 -07:00