Hi Paul,
Thank you for your suggestions.
1.
> I'm not sure about its purpose,
const char* getDescription(void) { return "XBEE"; } has been changed.
Purpose is to show sensor network parameters defined by gateway.conf as follows:
***************************************************************************
* MQTT-SN Transparent Gateway
* Part of Project Paho in Eclipse
* (
http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt-sn.embedded-c.git/)
*
* Author : Tomoaki YAMAGUCHI
* Version: 0.5.0
***************************************************************************
20160925 222425.100 PahoGateway-01 has been started.
listening on, UDP Multicast
225.1.1.1:1883 and Gateway Port 10000
^C20160925 222429.000 Terminated by CTL-C
20160925 222429.000 MQTT-SN Gateway stoped
tomoaki@valtan:~/tmp$
or
***************************************************************************
* MQTT-SN Transparent Gateway
* Part of Project Paho in Eclipse
* (
http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt-sn.embedded-c.git/)
*
* Author : Tomoaki YAMAGUCHI
* Version: 0.5.0
***************************************************************************
20160925 222544.858 PahoGateway-01 has been started.
listening on, API mode 2, Baudrate 38400, SerialDevice /dev/ttyUSB0
^C20160925 222552.000 Terminated by CTL-C
20160925 222552.000 MQTT-SN Gateway stoped
tomoaki@valtan:~/tmp$
2.
-SENSORNET := udp
+ifndef SENSORNET
+ SENSORNET := udp
+endif