Commit Graph

10 Commits

Author SHA1 Message Date
3016459cc9 Fix MQTTClient unaligned access on ARM when using -Os
QoS value was an enum and this value was passed to MQTTSerialize_subscribe as an (int*).
So when -Os optimization is used the QoS enum was set to byte and placed at odd address.
But when the code reached MQTTSerialize_subscribe and the address of pointer to byte was casted to pointer to integer the LDR instruction caused HardFaul because of unaligned int access.

Fixed by forcing to pass char so now it should not matter which compiler is used.
2019-08-07 12:05:23 +02:00
ca5348784f Merge pull request #67 from newAM/remove_strindex
removed unused variable strindex
2018-10-17 10:36:44 +09:00
db469a1dc7 fixed incompatible pointer type warning 2018-10-06 18:47:14 -07:00
b70a532f8d removed unused variable strindex from MQTTFormat_toServerString and MQTTFormat_toClientString 2018-10-06 18:34:18 -07:00
d1f87bd19f fixed several warnings in mqtt_interface 2018-10-06 17:20:55 -07:00
c69d27b875 #49 Adding support for C++ 2018-09-10 09:07:08 +09:00
18c878db9c fixed bug
issue #43
2018-07-05 14:50:14 +09:00
e3855b86e8 Remove redundant blocking 2018-05-11 21:57:53 +08:00
69a005ad56 Fixed compile errors after adding IPRAW and MQTT. 2017-08-28 09:22:02 +09:00
6de54d2bc7 add to paho MQTT 3.1.1 (ioLibrary interface porting) 2016-12-05 16:07:02 +09:00