- 06 Jun, 2016 3 commits
-
-
Ian Craggs authored
-
Ian Craggs authored
-
Ian Craggs authored
-
- 01 Jun, 2016 1 commit
-
-
- 31 May, 2016 9 commits
-
-
-
-
-
Ian Craggs authored
-
Ian Craggs authored
-
Ian Craggs authored
-
Ian Craggs authored
-
Ian Craggs authored
Automatic reconnect and offline buffering
-
Ian Craggs authored
Conflicts: src/Socket.c
-
- 27 May, 2016 4 commits
-
-
Ian Craggs authored
-
Ian Craggs authored
-
Ian Craggs authored
-
-
- 16 May, 2016 2 commits
-
-
Ian Craggs authored
Build cmake fix
-
Ian Craggs authored
Fix samples
-
- 10 May, 2016 10 commits
-
-
Guilherme Maciel Ferreira authored
According to ISO/IEC 9899:2011, section 7.22.4.4 (The exit function), "the constant EXIT_FAILURE is the implementation independent way to issue failures to exit(3)." Whereas EXIT_SUCCESS is the standard way to return success. Favor this platform independent constants than the literal numbers. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
Guilherme Maciel Ferreira authored
According to ISO/IEC 9899:2011, section 6.7.6.3, "Function declarators (including prototypes)": "The special case of an unnamed parameter of type void as the only item in the list specifies that the function has no parameters." Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
Guilherme Maciel Ferreira authored
Reduce the chance of the default value printed being different from the actual default value used. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
Guilherme Maciel Ferreira authored
Add the newline (\n) at the end of --maxdatalen option. Thus, the usage menu is shown with all options at their own lines. Also add the command's parameter and its default value on usage menu. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
Guilherme Maciel Ferreira authored
Add a common pattern for the default Client ID of the example applications. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
Guilherme Maciel Ferreira authored
This option provides a configurable Keep Alive interval. This configuration allows a better analysis of PINGREQ and PINGRESP packages on tools like Wireshark. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
Guilherme Maciel Ferreira authored
Add a missing comment for showtopics default value. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
Guilherme Maciel Ferreira authored
Add the newline (\n) at the end of --delimiter option. Thus, the usage menu is shown with all options at their own lines. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
Guilherme Maciel Ferreira authored
Most lines use tab instead of spaces. This commit change all lines to tag indenting. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
Guilherme Maciel Ferreira authored
The file stdinpuba.c exists, but it's not being compiled. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
- 06 May, 2016 2 commits
-
-
Guilherme Maciel Ferreira authored
MQTTAsync.h, MQTTClient.h and MQTTClientPersistence.h are now installed. So users can include the library. The default Makefile installs those headers, but the CMake script didn't. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
Guilherme Maciel Ferreira authored
The file stdinpuba.c exists, but wasn't compiled. Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
- 02 May, 2016 2 commits
-
-
Ian Craggs authored
Fix memory leak on Socket_new()
-
Ian Craggs authored
-
- 21 Apr, 2016 1 commit
-
-
Guilherme Maciel Ferreira authored
There is a memory leak on Socket_new(). The leak is caused by the lost of a reference to result pointer, returned from getaddrinfo(3). The freeaddrinfo(3) requires a pointer to the first result's element. However, this reference is lost when replaced by res. The Valgrind's memory leak report: ==15305== HEAP SUMMARY: ==15305== in use at exit: 60 bytes in 1 blocks ==15305== total heap usage: 205 allocs, 204 frees, 128,834 bytes allocated ==15305== ==15305== 60 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==15305== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==15305== by 0x419650F: gaih_inet (getaddrinfo.c:1253) ==15305== by 0x41994F4: getaddrinfo (getaddrinfo.c:2425) ==15305== by 0x4036D3A: Socket_new (Socket.c:607) ==15305== by 0x40352A4: MQTTProtocol_connect (MQTTProtocolOut.c:97) ==15305== by 0x402FF71: MQTTClient_connectURIVersion (MQTTClient.c:792) ==15305== by 0x403033F: MQTTClient_connectURI (MQTTClient.c:1025) ==15305== by 0x4030496: MQTTClient_connect (MQTTClient.c:1086) ==15305== by 0x8048A31: myconnect (stdoutsub.c:98) ==15305== by 0x8048C73: main (stdoutsub.c:146) ==15305== ==15305== LEAK SUMMARY: ==15305== definitely lost: 60 bytes in 1 blocks ==15305== indirectly lost: 0 bytes in 0 blocks ==15305== possibly lost: 0 bytes in 0 blocks ==15305== still reachable: 0 bytes in 0 blocks ==15305== suppressed: 0 bytes in 0 blocks ==15305== ==15305== For counts of detected and suppressed errors, rerun with: -v ==15305== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 19 from 10) Keeping the result pointer unchanged, pointing to the first element. And updating the res pointer only, we get a clean report from Valgrind: ==15924== HEAP SUMMARY: ==15924== in use at exit: 0 bytes in 0 blocks ==15924== total heap usage: 334 allocs, 334 frees, 131,753 bytes allocated ==15924== ==15924== All heap blocks were freed -- no leaks are possible ==15924== ==15924== For counts of detected and suppressed errors, rerun with: -v ==15924== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 19 from 10) Signed-off-by:
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
-
- 30 Mar, 2016 4 commits
-
-
Ian Craggs authored
-
Ian Craggs authored
-
Rainer Poisel authored
Signed-off-by:
Rainer Poisel <rainer.poisel@gmail.com>
-
Ian Craggs authored
-
- 29 Feb, 2016 2 commits
-
-
James Sutton authored
Updating GitHub Issues URL
-
James Sutton authored
Updating GitHub Issues URL
-