From debb09de4ac846f0f831c33878820c2d7fff536a Mon Sep 17 00:00:00 2001 From: tomoaki Date: Tue, 4 Jul 2017 10:08:50 +0900 Subject: [PATCH 1/2] Signed-off-by: tomoaki --- MQTTSNGateway/src/linux/xbee/SensorNetwork.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MQTTSNGateway/src/linux/xbee/SensorNetwork.cpp b/MQTTSNGateway/src/linux/xbee/SensorNetwork.cpp index d927fc2..1a806a7 100644 --- a/MQTTSNGateway/src/linux/xbee/SensorNetwork.cpp +++ b/MQTTSNGateway/src/linux/xbee/SensorNetwork.cpp @@ -120,7 +120,7 @@ int SensorNetwork::read(uint8_t* buf, uint16_t bufLen) int SensorNetwork::initialize(void) { char param[MQTTSNGW_PARAM_MAX]; - uint16_t baudrate = 9600; + uint32_t baudrate = 9600; uint8_t apimode = 2; if (theProcess->getParam("ApiMode", param) == 0) @@ -134,7 +134,7 @@ int SensorNetwork::initialize(void) if (theProcess->getParam("Baudrate", param) == 0) { - baudrate = (uint16_t)atoi(param); + baudrate = (uint32_t)atoi(param); } _description += ", Baudrate "; sprintf(param ,"%d", baudrate); From c3f17acb0cf335073cbdb61d0101466cd211687a Mon Sep 17 00:00:00 2001 From: tomoaki Date: Tue, 4 Jul 2017 10:18:52 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Update=20README.md=20Add=20=20=20=20Jo?= =?UTF-8?q?=C3=A3o=20Eduardo's=20contribution=20instead=20of=20him.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tomoaki --- MQTTSNGateway/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MQTTSNGateway/README.md b/MQTTSNGateway/README.md index d801c7c..77067ab 100644 --- a/MQTTSNGateway/README.md +++ b/MQTTSNGateway/README.md @@ -2,7 +2,7 @@ ### **step1. Build the gateway** ```` -$ git clone -b gateway https://github.com/eclipse/paho.mqtt-sn.embedded-c +$ git clone https://github.com/eclipse/paho.mqtt-sn.embedded-c $ cd paho.mqtt-sn.embedded-c/MQTTSNGateway $ make $ make install