Commit Graph

141 Commits

Author SHA1 Message Date
tomoaki
521715e011 Bugfix of #122
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2018-07-18 21:32:46 +09:00
tomoaki
74a9ebaa55 BugFix of #121
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2018-07-18 21:03:03 +09:00
tomoaki
a658bd5714 BugFix of Issue #119
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
add

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2018-07-17 05:48:45 +09:00
tomoaki
bb993aed5b Update: Add Pre-defined-Topic
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2018-07-14 19:20:48 +09:00
tomoaki
9ae5c72125 Add: Two Gateway Test programs
BugFix: invalid pointer

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2018-06-29 15:27:24 +09:00
Tomoaki Yamaguchi
e734fccb38 Refactor: DISCONNECT prcedure
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2018-06-16 16:33:44 +09:00
Mariusz
e6a9fdca01 Subscribe to all topics with '#'
Signed-off-by: Mariusz <mariusz.suchora@tieto.com>
2018-03-06 10:55:40 +01:00
tomoaki
a63125255d Update: Change Arrow shape of Log for packets from/to the Broker
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2018-03-05 17:18:13 +09:00
tomoaki
301814cc26 BugFix of #107
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2018-02-27 11:50:13 +09:00
Mariusz Suchora
ef715ebfa7 Set pointer to client to 0 when client was erased
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
2018-02-23 10:40:06 +01:00
Mariusz Suchora
b6192d863b Fix handling PUBREC message received from client
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
2018-02-23 10:32:07 +01:00
Mariusz Suchora
bba3f1dede Fix topic name registration procedure started by GW when handling PUBLISH message
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
2018-02-23 10:30:45 +01:00
Mariusz Suchora
c49a040569 Preventing memory leaks
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
2018-02-23 10:29:36 +01:00
Mariusz Suchora
fbab6ee91f Fix unsubscribing from short topics (two octets length)
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
2018-02-23 10:24:52 +01:00
Mariusz Suchora
6dffa66bb0 Fix gateway crash when subscribing to short topics (two octets length)
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
2018-02-23 10:23:36 +01:00
Mariusz Suchora
1ef38fb7a0 Fix adding elements to WaitREGACKPacketList
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
2018-02-23 10:20:32 +01:00
Mariusz Suchora
594db623ee Lock critical section when adding new Client to list
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
2018-02-23 10:18:46 +01:00
Tomoaki Yamaguchi
7945fa810a Merge pull request #95 from ty4tw/develop
BugFix of #93
2017-12-21 22:49:30 +09:00
tomoaki
23b358ad08 BugFix of #93
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-12-21 22:43:20 +09:00
Tomoaki Yamaguchi
946dc70826 Merge pull request #94 from ty4tw/develop
Bugfix of #91, #93
2017-12-20 16:36:42 +09:00
tomoaki
9540c748f5 Bugfix of #91, #93
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-12-20 16:13:09 +09:00
Tomoaki Yamaguchi
3d7a349998 Merge pull request #89 from ty4tw/develop
Update make codes simple #86
2017-09-28 22:41:25 +09:00
tomoaki
9d258cf53a Update: change codes simple #86
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-09-28 22:26:18 +09:00
tomoaki
8a2ac67b4f Update Makefile to add command line parameters
Parameters are additional include and lib directories for future useage.

e.g. make INCLUDE="-I/foo" LIB="-L/bar"

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-09-28 16:01:50 +09:00
Tomoaki Yamaguchi
1143a6a8ad Merge pull request #88 from ty4tw/develop
Bug Fix of Empty Client Id of CONNECT #86
2017-09-28 08:25:42 +09:00
tomoaki
6905e7aa1c Fix of warning: may be used uninitialized in this function
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-09-28 07:59:46 +09:00
tomoaki
4935d2aa86 BugFix of #86
Fix of warning: comparison between signed and unsigned integer
expressions 


Set a null string to the client ID when it of CONNECT is empty.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-09-28 07:19:22 +09:00
Tomoaki Yamaguchi
3ffe492c21 Merge pull request #84 from ty4tw/develop
Update Explanation of Multicast Address #83
2017-09-12 23:30:51 +09:00
tomoaki
98c1ebae50 Update Explanation of Multicast Address #83
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-09-12 23:26:53 +09:00
Tomoaki Yamaguchi
93a26b28c4 Merge pull request #82 from ty4tw/develop
Add OSX build check
2017-09-10 10:44:33 +09:00
tomoaki
1ca82ed97d Fix OSX compile error
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-09-10 08:34:56 +09:00
tomoaki
ca063cec9d Add comment to the GatewayTester
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-09-08 14:25:52 +09:00
Tomoaki Yamaguchi
c63583af83 Merge pull request #81 from ty4tw/develop
Bugfix of #80
2017-09-08 12:09:22 +09:00
tomoaki
e22d00046e Bugfix of #80
1. sleepy node problem
2. sender of PINGREQ in the log

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-09-08 11:24:39 +09:00
Tomoaki Yamaguchi
f92f11f87a Merge pull request #79 from ty4tw/develop
Update: forget to delete #define DEBUG
2017-08-27 17:03:20 +09:00
tomoaki
99ae7644e5 Update: forget to delete #define DEBUG
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-08-27 16:56:05 +09:00
Tomoaki Yamaguchi
88ecb2e11d Merge pull request #78 from ty4tw/develop
BugFix of #76 and #77
2017-08-27 16:45:56 +09:00
tomoaki
bc731210ae BugFix of #76 and #77
1.Return CONNACK instead of the broker when the gateway receives CONNECT
while the client is Sleep or Awake mode.

2.Define the max size of a que for PUBLISH while the client state is
Asleep mode.  Despose packets when the que is full of packets.

3.Return PUBACK or PUBREL to the broker when the client is Asleep or
Awake.


Signed-off-by: tomoaki <tomoaki@tomy-tech.com>



Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-08-27 16:39:29 +09:00
Ciupis, Jedrzej
9c20f2f18d Fix IPv6 address scope bug
Signed-off-by: Ciupis, Jedrzej <jedrzej.ciupis@nordicsemi.no>
2017-08-10 14:32:00 +02:00
tomoaki
7099531e0e BugFix: MQTT packets wiith no payload can't be received collectly.
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-07-28 14:33:41 +09:00
tomoaki
3425a4d441 Delete git clone branch acording to merge the branch.
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-07-06 08:03:17 +09:00
tomoaki
c3f17acb0c Update README.md
Add    João Eduardo's contribution instead of him.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-07-04 10:23:19 +09:00
tomoaki
debb09de4a Signed-off-by: tomoaki <tomoaki@tomy-tech.com> 2017-07-04 10:08:50 +09:00
Benjamin Aigner
46a799c5f6 Cast from std::string to c_str
Signed-off-by: Benjamin Aigner <aignerb@technikum-wien.at>
2017-06-12 13:20:22 +02:00
Benjamin Aigner
8c4e4bbe8a Changed output from cout to WRITELOG
Signed-off-by: Benjamin Aigner <aignerb@technikum-wien.at>
2017-06-12 13:05:15 +02:00
tomoaki
a7ebd65bb3 Added specific interface to send UDP6 packets
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-06-12 16:32:31 +09:00
tomoaki
fef38407e3 Add comments to SensorNetwork source code for helpping to implement a
new SensorNetwork Class.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-05-20 13:09:36 +09:00
tomoaki
a916b489e0 Gateway's Version of oxgen is 1.0.0
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-05-19 10:55:11 +09:00
tomoaki
5c278f1aec BugFix: MQTTSNDeserialize_XXXX() functions don't return error code when
error occurs.

Do not store the length of packet into rc.

If the packet is incorrect, skip the processing that follows.

Bugfix: Print out the value of TopicId in SUBACK and UNSUBACK. 
 
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-05-19 09:44:51 +09:00
tomoaki
1b867589e5 BugFix: Segmentation faultdue to incorrect ProtocolID of CONNECT. #53
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2017-05-18 18:48:03 +09:00