aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-16Update amalgamationHEADv0.6masterOskari Timperi
2018-01-16Fix keepalive handlingOskari Timperi
Previously the code would send pings only when SocketSelect() would timeout. This was not working when a client was subscribed to a topic and would receive periodic messages but wouldn't itself send anything. This meant that SocketSelect() wouldn't timeout at any point and we wouldn't execute the check for sending a PINGREQ. The fix is to do the check for last sent packet before calling SocketSelect() so that if we haven't been sending anything for a while, we really send the PINGREQ. Fixes #10
2017-03-18Update amalgamationOskari Timperi
2017-03-18Merge branch 'the-great-refactor'v0.5Oskari Timperi
* the-great-refactor: Add big_message_test Fix publish message serialization Modify the code to use nonblocking sockets Fix indentation Free userName and password in MqttClientFree() Add forgotten files Massive refactoring of the internals
2017-03-18Add big_message_testOskari Timperi
The test tries to publish and receive 3.5 megabyte message.
2017-03-18Fix publish message serializationOskari Timperi
All of the publish messages regardless of qos contained the message id.
2017-03-18Modify the code to use nonblocking socketsOskari Timperi
2017-03-06Fix indentationOskari Timperi
2017-03-06Free userName and password in MqttClientFree()Oskari Timperi
2017-03-06Add forgotten filesOskari Timperi
2017-03-06Massive refactoring of the internalsOskari Timperi
2017-02-20Support for username and passwordOskari Timperi
2017-02-19Update amalgamationv0.4Oskari Timperi
2017-02-19Add MqttClientSubscribeMany() and make necessary API changesOskari Timperi
2017-02-19Add interop test: dollar_topics_testOskari Timperi
2017-02-19Add interop test: subscribe_failure_testOskari Timperi
2017-02-19Add interop test: redelivery_on_reconnect_testOskari Timperi
2017-02-19Add private APIs to support interop testingOskari Timperi
2017-02-19Support reconnecting in MqttClientConnect()Oskari Timperi
2017-02-19Update amalgamationv0.3Oskari Timperi
2017-02-19Add more interop testsOskari Timperi
2017-02-19Use keepalive as SocketSelect() timeout if timeout<0Oskari Timperi
2017-02-19Allow keepalive to be 0 to disable sending PINGREQsOskari Timperi
2017-02-18Disconnect socket if connected in MqttClientFree()Oskari Timperi
2017-02-18Add first interop testOskari Timperi
The tests can be run against the Eclipse Paho interop test broker. https://wiki.eclipse.org/Interop_Testing_Plan https://github.com/eclipse/paho.mqtt.testing
2017-02-18Fix a bug MqttClientHandlePubRel()Oskari Timperi
We wanted to find previous PUBREC messages in the function, but there was a typo so we were searching for PUBLISH messages. This made the client stop as it thought it received an unknown PUBREL.
2017-02-18Add MqttClientIsConnected()Oskari Timperi
2017-02-18Add timeout param to MqttClientRunOnce()Oskari Timperi
Also change SocketSelect() to take timeout in milliseconds.
2017-02-18Move cleanSession argument to MqttClientConnect()Oskari Timperi
2017-02-17Include qos/retain in OnMessage callbackOskari Timperi
2017-02-16Update amalgamationv0.2Oskari Timperi
2017-02-16Replace getopt.c with optparse.c for toolsOskari Timperi
The magic getopt.c didn't work out with MSVC for some reason.
2017-02-16Link the mqtt library to ws2_32 on Windows to make tools linkOskari Timperi
2017-02-16Use functions from socket.c in socketstream.cOskari Timperi
Makes the socket includes and platform specific defines centralized in one place.
2017-02-16MSVC/Windows cleanups to socket.cOskari Timperi
2017-02-16Get rid of compiler warning by explicit castOskari Timperi
2017-02-16Remove SEEK_SET/SEEK_END/SEEK_CUR redefinitionsOskari Timperi
Don't really know why they were there in the first place.
2017-02-16Make queue.h work on MSVCOskari Timperi
Surround currently unnecessary parts with `#if 0 ... #endif`. The offending part was the __launder_type() function with inline assembly in unsupported GCC style.
2017-02-15Add amalgamationv0.1Oskari Timperi
2017-02-15Include the license text in the amalgamationOskari Timperi
2017-02-15Initialize Winsock on WindowsOskari Timperi
2017-02-15Make the code compile using MinGWOskari Timperi
- implemented GetCurrentTime() for Windows - had to rename GetCurrentTime() to MqttGetCurrentTime() because of name clashes - setup headers correctly
2017-02-15Home-made 16 bit big endian reading and writing in stream.cOskari Timperi
2017-02-15Add SocketSelect() to wrap select()Oskari Timperi
This also makes all the necessary includes for sockets centralized to `sockets.c`.
2017-02-15NULL terminate received strings and message payloadOskari Timperi
2017-02-14Add more fixes to -std=c99 compilation by defining _XOPEN_SOURCEOskari Timperi
2017-02-14Fixes to -std=c99 compilationOskari Timperi
2017-02-14Include config.h initially with MQTT_INLINE definitionOskari Timperi
2017-02-14More includes to socket.cOskari Timperi
Try to make the library compile under -std=c99 -pedantic
2017-02-14Fix amalgamation and includes under src/libOskari Timperi