Closed ralight closed 7 years ago
Yes that's good thanks, but could there be something in the repository as well please? And with detailed explanations of each parameter - what does GatewayID
influence, for example? What is the difference between GatewayPortNo
and BroadcastPortNo
?
BroadcastIP and BroadcastPortNo is a multicast address for ADVERTISE, GWSEARCH and GWINFO messages. Gateway is waiting GWSEARCH multicast message and when receiving it send GWINFO message via Broadcast address. Clients can get the gateway address (Gateway IP address and GatewayPortNo) via GWINFO message by means of std::recvfrom(), Client should know the BroadcastIP and PortNo to send a SEARCHGW message.
GatewayId is defined by GWSEARCH message.
KeepAlive is a duration of ADVERTISE message in seconds.
when ClientAuthorization is YES, see MQTTSNGWClient.cpp line53, /usr/local/etc/mqttsnGateway/config/clientList.conf file is required. this file defines connect able clients by IPaddress and PortNo.
I made a pull request of conf files.
I did not answer the question, what does GatewayID influence, for example? GWINFO message has Length, MsgType, GwId and GwAdd. GatewayID is the GwId.
Hi Roger Light, Please close this issue.
see https://github.com/ty4tw/paho.mqtt-sn.embedded-c/wiki
/usr/local/etc/mqttsnGateway/config/param.conf Contents are follows:
BrokerName to specify a domain name of the Broker, and BrokerPortNo is a port No of the Broker. If the Broker have to connected via TLS, set BrokerPortNo=8883 and SecureConnection=YES.