Commit Graph

17 Commits

Author SHA1 Message Date
tomoaki
5fb4312aad This branch for debugging DTLS #90, #150, #195, #227
The purpose of this branch is to share work in process.
Change sellect() of UDP to poll()
Rewrite UDP6 for DTLS6

Known bug: can't reconnect DTLS

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2021-08-01 19:45:58 +09:00
tomoaki
55128f0f0e Add Bluetooth classic as a sensor network #69, #195, #90
I think the architecture of the ble sensor network, which does not use
threads per socket, can be applied to DTLS.

Known bug:
Occasionally a timeout error occurs when connecting to RFCOMM.
BLE is not supported yet. I need help to do it.


Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2021-06-02 20:40:02 +09:00
tomoaki
4777252df0 Refacter UDP SensorNetwork
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2021-05-11 13:58:21 +09:00
tomoaki
f631f27c25 Add errno to a Exception property
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2021-05-05 15:47:19 +09:00
tomoaki
2adc167207 Refactor Exception handle scheme
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2021-05-04 17:34:46 +09:00
tomoaki
53be14f76e Bugfix of #177
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2020-02-25 15:50:56 +09:00
tomoaki
b8129d6781 Add a new function to set TTL/Hops of SensorNetwork(UDP and UDP6) #175
Parameters to set them in the gateway.conf,
MulticastTTL=1 for UDP
GatewayUDP6Hops=1 for UDP6

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2020-02-11 18:30:33 +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
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
19c4d8208e BugFix of Wildcard of Topic Issue #40
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2016-10-25 23:55:27 +09:00
tomoaki
b87c8412f8 Update: Add Client Address to CONNECT reject error message.
Update: comment out the generating CONNACK reply.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2016-10-18 10:06:02 +09:00
tomoaki
63d2824444 BugFix: stop Process mechanism of ProcessFramework.
Update: DISCONNECT procedure for NonActive clients.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2016-10-06 10:48:29 +09:00
tomoaki
93df7db12e Update: DISCONNECT (Issue #31) and others
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2016-10-03 18:19:47 +09:00
tomoaki
e3dd9fa01a BugFix: Termination by ctl + C
Update: API mode is configurable

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2016-09-25 17:06:05 +09:00
tomoaki
5019ead91d Update & BugFix Add GatewayTester
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2016-08-28 20:44:40 +09:00
tomoaki
dcdb51b5d6 BugFix: PINGREQ & PINGRESP can't be received and sent.
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2016-08-07 15:33:30 +09:00
tomoaki
64fa07b391 First Commit of MQTT-SN Gateway
Add    new SensorNetwork XBee
Add    a sensor network type in a start message.
Update MQTTSNClient to avoid build warning.
Update WiringPi's functions to my original ones. 
BugFix check msgId before adding waitdTopicId table.
BugFix Process termination procedures
Update print curent time in millseconds.
update move currentDateTime() to linux directory.
Bugfix: blink blue lightiIndicator.
Bugfix: Register returns wrong id.
change a status of the client to Disconnected.
change client status procedure
Update README
BugFix: change Network Disconnect procedures.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
2016-06-11 19:59:51 +09:00