Merge pull request #52 from ty4tw/gateway

Change README.md format nicely.
This commit is contained in:
Tomoaki Yamaguchi
2017-05-14 10:17:29 +09:00
committed by GitHub

View File

@@ -7,7 +7,7 @@ $ cd paho.mqtt-sn.embedded-c/MQTTSNGateway
$ make
$ make install
$ make clean
```
````
MQTT-SNGateway, MQTT-SNLogmonitor and param.conf are copied into ../ directory.
@@ -53,7 +53,7 @@ MulticastPortNo=1883
Baudrate=38400
SerialDevice=/dev/ttyUSB0
ApiMode=2
```
````
**BrokerName** to specify a domain name of the Broker, and **BrokerPortNo** is a port No of the Broker. **BrokerSecurePortNo** is for TLS connection.
**MulticastIP** and **MulticastPortNo** 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**) from GWINFO message by means of std::recvfrom(),